Skip to content

Commit 5d1da67

Browse files
author
Bohdan Korablov
committed
MAGETWO-63936: [PR] Delivery of deployment improvements
1 parent d7b0afe commit 5d1da67

File tree

1 file changed

+4
-2
lines changed
  • app/code/Magento/Config/Block/System/Config

1 file changed

+4
-2
lines changed

app/code/Magento/Config/Block/System/Config/Form.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ class Form extends \Magento\Backend\Block\Widget\Form\Generic
115115
private $appConfig;
116116

117117
/**
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+
*
118121
* @var ElementVisibilityInterface
119122
*/
120123
private $elementVisibility;
@@ -361,8 +364,7 @@ protected function _initElement(
361364
$sharedClass = $this->_getSharedCssClass($field);
362365
$requiresClass = $this->_getRequiresCssClass($field, $fieldPrefix);
363366

364-
$isReadOnly = $this->getElementVisibility()->isDisabled($field->getPath());
365-
$isReadOnly = $isReadOnly
367+
$isReadOnly = $this->getElementVisibility()->isDisabled($field->getPath())
366368
?: $this->getSettingChecker()->isReadOnly($path, $this->getScope(), $this->getStringScopeCode());
367369
$formField = $fieldset->addField(
368370
$elementId,

0 commit comments

Comments
 (0)