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(
340340 * @param \Magento\Framework\DB\Transaction $deleteTransaction
341341 * @return void
342342 * @SuppressWarnings(PHPMD.CyclomaticComplexity)
343+ * @SuppressWarnings(PHPMD.NPathComplexity)
343344 */
344345 protected function _processGroup (
345346 $ groupId ,
@@ -360,6 +361,10 @@ protected function _processGroup(
360361 // set value for group field entry by fieldname
361362 // use extra memory
362363 $ fieldsetData = [];
364+ foreach ($ groupData ['fields ' ] as $ fieldId => $ fieldData ) {
365+ $ fieldsetData [$ fieldId ] = $ fieldData ['value ' ] ?? null ;
366+ }
367+
363368 foreach ($ groupData ['fields ' ] as $ fieldId => $ fieldData ) {
364369 $ isReadOnly = $ this ->settingChecker ->isReadOnly (
365370 $ groupPath . '/ ' . $ fieldId ,
@@ -380,7 +385,6 @@ protected function _processGroup(
380385 if (!isset ($ fieldData ['value ' ])) {
381386 $ fieldData ['value ' ] = null ;
382387 }
383- $ fieldsetData [$ fieldId ] = $ fieldData ['value ' ];
384388 $ data = [
385389 'field ' => $ fieldId ,
386390 'groups ' => $ groups ,
You can’t perform that action at this time.
0 commit comments