Skip to content

Commit

Permalink
magento#18956 Fixes for set root_category_id
Browse files Browse the repository at this point in the history
  • Loading branch information
larsroettig authored and gelanivishal committed Nov 16, 2018
1 parent 0f57a30 commit aa4abec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ private function createGroups(array $items, array $data)
);

$group = $this->groupFactory->create();
$group->setData($groupData);
$group->setRootCategoryId(0);
$group->setData($groupData);

$group->getResource()->save($group);
$group->getResource()->addCommitCallback(function () use ($data, $group, $website) {
Expand Down

0 comments on commit aa4abec

Please sign in to comment.