Skip to content

Commit

Permalink
Update Model/Category/Repository.php
Browse files Browse the repository at this point in the history
  • Loading branch information
supercid authored Sep 30, 2024
1 parent e7bafbf commit 8537de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Category/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function getCategoryCollectionQuery(Store $store, array $categoryIds = []
->addNameToResult()
->setStoreId($store->getId())
->addUrlRewriteToResult()
->addAttributeToFilter('level', ['gt' => 1]) // @TODO: Check if zero level categories are needed
->addAttributeToFilter('level', ['gt' => 1])
->addAttributeToSelect(array_merge(['name', 'is_active', 'include_in_menu']))
->addOrderField('entity_id');

Expand Down

0 comments on commit 8537de3

Please sign in to comment.