Skip to content

Commit f7685ce

Browse files
committed
Merge remote-tracking branch 'origin/develop' into refactoring-2022
# Conflicts: # Model/Import/Category.php
2 parents b0b4d37 + db37568 commit f7685ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Model/Import/Category.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,9 @@ private function indexDeleteEvents(): self
618618
*/
619619
protected function reindexUpdatedCategories($categoryId)
620620
{
621-
/** @var $category CategoryModel */
622-
$category = $this->defaultCategory->load($categoryId);
621+
/** @var $category \Magento\Catalog\Model\Category */
622+
$category = $this->categoryRepository->get($categoryId);
623+
623624
foreach ($category->getStoreIds() as $storeId) {
624625
if ($storeId == 0) {
625626
continue;

0 commit comments

Comments
 (0)