Skip to content

Commit 86b5bc0

Browse files
committed
MAGETWO-93192: Config backend models are not populated with fieldset data
1 parent b2a65ae commit 86b5bc0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,10 @@ protected function _processGroup(
360360
// set value for group field entry by fieldname
361361
// use extra memory
362362
$fieldsetData = [];
363+
foreach ($groupData['fields'] as $fieldId => $fieldData) {
364+
$fieldsetData[$fieldId] = $fieldData['value'] ?? null;
365+
}
366+
363367
foreach ($groupData['fields'] as $fieldId => $fieldData) {
364368
$isReadOnly = $this->settingChecker->isReadOnly(
365369
$groupPath . '/' . $fieldId,
@@ -380,7 +384,6 @@ protected function _processGroup(
380384
if (!isset($fieldData['value'])) {
381385
$fieldData['value'] = null;
382386
}
383-
$fieldsetData[$fieldId] = $fieldData['value'];
384387
$data = [
385388
'field' => $fieldId,
386389
'groups' => $groups,

0 commit comments

Comments
 (0)