fix on empty shelve

This commit is contained in:
Ludovic CANDELLIER
2022-04-25 20:46:18 +02:00
parent e22a541342
commit 328d791b87
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ class Categories
public static function getCategoryTreeVisibles($sale_channel_id = false)
{
// return self::getModel()->defaultOrder()->visible()->hasAvailableOffers($sale_channel_id)->get()->toTree();
return self::getModel()->defaultOrder()->visible()->get()->toTree();
return self::getModel()->defaultOrder()->hasAvailableOffers()->visible()->get()->toTree();
}
public static function getChildren($data, $withFolder = false)