We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b0b4d37 + db37568 commit f7685ceCopy full SHA for f7685ce
1 file changed
Model/Import/Category.php
@@ -618,8 +618,9 @@ private function indexDeleteEvents(): self
618
*/
619
protected function reindexUpdatedCategories($categoryId)
620
{
621
- /** @var $category CategoryModel */
622
- $category = $this->defaultCategory->load($categoryId);
+ /** @var $category \Magento\Catalog\Model\Category */
+ $category = $this->categoryRepository->get($categoryId);
623
+
624
foreach ($category->getStoreIds() as $storeId) {
625
if ($storeId == 0) {
626
continue;
0 commit comments