From 7a2d8ee3eadab1468adebf5c514a31cc95eb23ff Mon Sep 17 00:00:00 2001 From: ugljesaspx Date: Fri, 1 Nov 2024 14:20:23 +0100 Subject: [PATCH] Adapat code for category reindex --- Model/Category/Repository.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Model/Category/Repository.php b/Model/Category/Repository.php index 156a292c0..95906df89 100644 --- a/Model/Category/Repository.php +++ b/Model/Category/Repository.php @@ -132,8 +132,7 @@ public function resolveParentCategoryIds(CategoryInterface $category): ?array $parentCategoryIds = null; if ($category->getLevel() >= 1) { - $parentCategoryIds = $this->getCategoryParentIds($category['path']); - + $parentCategoryIds = $this->getCategoryParentIds($category->getPath()); $this->saveParentIdsToCache($category, $parentCategoryIds); }