Skip to content

Commit

Permalink
Adapat code for category reindex
Browse files Browse the repository at this point in the history
  • Loading branch information
ugljesaspx committed Nov 1, 2024
1 parent ccaf9ac commit 7a2d8ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Model/Category/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7a2d8ee

Please sign in to comment.