Skip to content

Commit

Permalink
restore sysconfig original behavior (OpenMage#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
empiricompany authored Aug 8, 2023
1 parent d739ce3 commit a5941cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/code/core/Mage/Adminhtml/Block/System/Config/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ public function initFields($fieldset, $group, $section, $fieldPrefix = '', $labe
. $dependentFieldNameValue;
$shouldBeAddedDependence = true;
$dependentValue = (string)(isset($dependent->value) ? $dependent->value : $dependent);
if (isset($dependent->separator)) {
$dependentValue = explode((string)$dependent->separator, $dependentValue);
if (isset($dependent['separator'])) {
$dependentValue = explode((string)$dependent['separator'], $dependentValue);
}
$dependentFieldName = $fieldPrefix . $dependent->getName();
$dependentField = $dependentFieldGroup->fields->$dependentFieldName;
Expand Down
3 changes: 1 addition & 2 deletions app/code/core/Mage/Cms/etc/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<depends>
<enabled>
<enabled separator="|">
<value>enabled|hidden</value>
<separator>|</separator>
</enabled>
</depends>
</skin>
Expand Down

0 comments on commit a5941cd

Please sign in to comment.