From 80b4e1077c4cddf9d5299411ff04eed4d4da008a Mon Sep 17 00:00:00 2001 From: Arthur Del Esposte Date: Thu, 31 Jul 2014 13:31:05 -0300 Subject: [PATCH] Pass a valid argument to on_level scope in ProductCategoriesBlock --- app/models/product_categories_block.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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