Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into refactoring-2022
Browse files Browse the repository at this point in the history
# Conflicts:
#	Model/Import/Category.php
  • Loading branch information
avstudnitz committed Oct 4, 2022
2 parents b0b4d37 + db37568 commit f7685ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Model/Import/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,9 @@ private function indexDeleteEvents(): self
*/
protected function reindexUpdatedCategories($categoryId)
{
/** @var $category CategoryModel */
$category = $this->defaultCategory->load($categoryId);
/** @var $category \Magento\Catalog\Model\Category */
$category = $this->categoryRepository->get($categoryId);

foreach ($category->getStoreIds() as $storeId) {
if ($storeId == 0) {
continue;
Expand Down

0 comments on commit f7685ce

Please sign in to comment.