Skip to content

Commit db37568

Browse files
authored
Merge pull request #124 from VincentMarmiesse/fix-category-import-url
Fix categories import URL, load them with repository
2 parents 462127f + d9c2322 commit db37568

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Model/Import/Category.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,8 @@ protected function indexDeleteEvents()
800800
protected function reindexUpdatedCategories($categoryId)
801801
{
802802
/** @var $category \Magento\Catalog\Model\Category */
803-
$category = $this->defaultCategory->load($categoryId);
804-
//$categoryName = $category->getName();
803+
$category = $this->categoryRepository->get($categoryId);
804+
805805
foreach ($category->getStoreIds() as $storeId) {
806806
if ($storeId == 0) {
807807
continue;

0 commit comments

Comments
 (0)