Skip to content

Commit 144ea18

Browse files
author
Lars Roettig
authored
CodeReviewChange
1 parent 54f4802 commit 144ea18

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/Store/Model/Config/Importer/Processor

1 file changed

+4
-1
lines changed

app/code/Magento/Store/Model/Config/Importer/Processor/Create.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ private function createGroups(array $items, array $data)
177177
);
178178

179179
$group = $this->groupFactory->create();
180-
$group->setRootCategoryId(0);
180+
if (!isset($groupData['root_categry_id'])) {
181+
$groupData['root_categry_id'] = 0;
182+
}
183+
181184
$group->setData($groupData);
182185

183186
$group->getResource()->save($group);

0 commit comments

Comments
 (0)