Skip to content

Commit d35972f

Browse files
authored
Fix current store id is used
1 parent e3618bc commit d35972f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/Export/Categories.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function execute(int $storeId, array $attributes): array
4444
/** @var Category $category */
4545
foreach ($collection->getItems() as $category) {
4646
$row = $this->utils->sanitizeData($category->toArray($attributes));
47-
$row['store'] = $this->storeManager->getStore($category->getStoreId())->getCode();
47+
$row['store'] = $this->storeManager->getStore($storeId)->getCode();
4848
$row['parent_code'] = $category->getParentCategory()->getData('category_code');
4949
$export[] = $row;
5050
}

0 commit comments

Comments
 (0)