Commit 80b4e1077c4cddf9d5299411ff04eed4d4da008a

Authored by Arthur Esposte
1 parent 22243571

Pass a valid argument to on_level scope in ProductCategoriesBlock

(ActionItem3207)
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/product_categories_block.rb
... ... @@ -17,7 +17,7 @@ class ProductCategoriesBlock < Block
17 17 profile = owner
18 18 proc do
19 19 if @categories.nil? or @categories.length == 0
20   - categories = ProductCategory.on_level().order(:name)
  20 + categories = ProductCategory.on_level(nil).order(:name)
21 21 if @categories and @categories.length == 0
22 22 notice = _('There are no sub-categories for %s') % @category.name
23 23 end
... ...