diff --git a/app/models/product_categories_block.rb b/app/models/product_categories_block.rb index 3dff0f6..8ada9c8 100644 --- a/app/models/product_categories_block.rb +++ b/app/models/product_categories_block.rb @@ -17,7 +17,7 @@ class ProductCategoriesBlock < Block profile = owner proc do if @categories.nil? or @categories.length == 0 - categories = ProductCategory.on_level().order(:name) + categories = ProductCategory.on_level(nil).order(:name) if @categories and @categories.length == 0 notice = _('There are no sub-categories for %s') % @category.name end -- libgit2 0.21.2