Commit d66e2c418b74362727eafbe4b7583b1476ffcc48
Exists in
master
and in
22 other branches
Merge branch 'AI3252-product_categories_block_bug' into 'master'
Ai3252 product categories block bug Fixing ArgumentError in Profile_editor#index bug: https://noosfero.org/Development/ActionItem3252 See merge request !282
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 | ... | ... |