File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed
dev/tests/functional/tests/app/Magento
Config/Test/Handler/ConfigData Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 209
209
<field name =" general/country/allow" xsi : type =" array" >
210
210
<item name =" scope" xsi : type =" string" >default</item >
211
211
<item name =" scope_id" xsi : type =" number" >0</item >
212
- <item name =" value" xsi : type =" array" >
213
- <item name =" Antarctica" xsi : type =" string" >AQ</item >
214
- <item name =" Canada" xsi : type =" string" >CA</item >
215
- <item name =" France" xsi : type =" string" >FR</item >
216
- <item name =" Germany" xsi : type =" string" >DE</item >
217
- <item name =" Italy" xsi : type =" string" >IT</item >
218
- <item name =" Ukraine" xsi : type =" string" >UA</item >
219
- <item name =" United Kingdom" xsi : type =" string" >GB</item >
220
- <item name =" United States" xsi : type =" string" >US</item >
221
- </item >
212
+ <item name =" inherit" xsi : type =" string" >1</item >
222
213
</field >
223
214
</dataset >
224
215
</repository >
Original file line number Diff line number Diff line change @@ -89,15 +89,16 @@ protected function prepareConfigPath(array $input)
89
89
}
90
90
$ resultArray .= '[ ' . $ subPath . '] ' ;
91
91
}
92
- $ resultArray .= '[value] ' ;
93
- if (is_array ($ input ['value ' ])) {
92
+ $ valueCode = isset ($ input ['inherit ' ]) ? 'inherit ' : 'value ' ;
93
+ $ resultArray .= "[ $ valueCode] " ;
94
+ if (isset ($ input ['value ' ]) && is_array ($ input ['value ' ])) {
94
95
$ values = [];
95
96
foreach ($ input ['value ' ] as $ key => $ value ) {
96
97
$ values [] = $ resultArray . "[ $ key]= $ value " ;
97
98
}
98
99
$ resultArray = implode ('& ' , $ values );
99
100
} else {
100
- $ resultArray .= '= ' . $ input [' value ' ];
101
+ $ resultArray .= '= ' . $ input [$ valueCode ];
101
102
}
102
103
return $ resultArray ;
103
104
}
You can’t perform that action at this time.
0 commit comments