Skip to content

Commit d9c2322

Browse files
Fix categories import URL, load them with repository
1 parent 462127f commit d9c2322

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)