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); }