File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/Config/Block/System/Config Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,9 @@ class Form extends \Magento\Backend\Block\Widget\Form\Generic
115
115
private $ appConfig ;
116
116
117
117
/**
118
+ * Checks visibility status of form elements on Stores > Settings > Configuration page in Admin Panel
119
+ * by their paths in the system.xml structure.
120
+ *
118
121
* @var ElementVisibilityInterface
119
122
*/
120
123
private $ elementVisibility ;
@@ -361,8 +364,7 @@ protected function _initElement(
361
364
$ sharedClass = $ this ->_getSharedCssClass ($ field );
362
365
$ requiresClass = $ this ->_getRequiresCssClass ($ field , $ fieldPrefix );
363
366
364
- $ isReadOnly = $ this ->getElementVisibility ()->isDisabled ($ field ->getPath ());
365
- $ isReadOnly = $ isReadOnly
367
+ $ isReadOnly = $ this ->getElementVisibility ()->isDisabled ($ field ->getPath ())
366
368
?: $ this ->getSettingChecker ()->isReadOnly ($ path , $ this ->getScope (), $ this ->getStringScopeCode ());
367
369
$ formField = $ fieldset ->addField (
368
370
$ elementId ,
You can’t perform that action at this time.
0 commit comments