File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/Config/Model Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -340,6 +340,7 @@ private function getChangedPaths(
340
340
* @param \Magento\Framework\DB\Transaction $deleteTransaction
341
341
* @return void
342
342
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
343
+ * @SuppressWarnings(PHPMD.NPathComplexity)
343
344
*/
344
345
protected function _processGroup (
345
346
$ groupId ,
@@ -360,6 +361,10 @@ protected function _processGroup(
360
361
// set value for group field entry by fieldname
361
362
// use extra memory
362
363
$ fieldsetData = [];
364
+ foreach ($ groupData ['fields ' ] as $ fieldId => $ fieldData ) {
365
+ $ fieldsetData [$ fieldId ] = $ fieldData ['value ' ] ?? null ;
366
+ }
367
+
363
368
foreach ($ groupData ['fields ' ] as $ fieldId => $ fieldData ) {
364
369
$ isReadOnly = $ this ->settingChecker ->isReadOnly (
365
370
$ groupPath . '/ ' . $ fieldId ,
@@ -380,7 +385,6 @@ protected function _processGroup(
380
385
if (!isset ($ fieldData ['value ' ])) {
381
386
$ fieldData ['value ' ] = null ;
382
387
}
383
- $ fieldsetData [$ fieldId ] = $ fieldData ['value ' ];
384
388
$ data = [
385
389
'field ' => $ fieldId ,
386
390
'groups ' => $ groups ,
You can’t perform that action at this time.
0 commit comments