Skip to content

Commit

Permalink
Fix current store id is used
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 authored Jul 8, 2024
1 parent e3618bc commit d35972f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Export/Categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function execute(int $storeId, array $attributes): array
/** @var Category $category */
foreach ($collection->getItems() as $category) {
$row = $this->utils->sanitizeData($category->toArray($attributes));
$row['store'] = $this->storeManager->getStore($category->getStoreId())->getCode();
$row['store'] = $this->storeManager->getStore($storeId)->getCode();
$row['parent_code'] = $category->getParentCategory()->getData('category_code');
$export[] = $row;
}
Expand Down

0 comments on commit d35972f

Please sign in to comment.