Skip to content

Commit b926cd9

Browse files
[EngCom] Public Pull Requests - 2.2-develop
- merged latest code from mainline branch
2 parents b38fb5c + 53eb46d commit b926cd9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/Config/Model/Config.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)