Commit 2944ada6f29bb68f1835b957828711280265b3e2
1 parent
815d92a5
Exists in
master
and in
28 other branches
ActionItem466: marking unavoidable problem
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2071 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/models/category_finder.rb
@@ -51,6 +51,7 @@ class CategoryFinder | @@ -51,6 +51,7 @@ class CategoryFinder | ||
51 | def options_for_find(klass, options={}) | 51 | def options_for_find(klass, options={}) |
52 | if defined? options[:product_category] | 52 | if defined? options[:product_category] |
53 | prod_cat = options.delete(:product_category) | 53 | prod_cat = options.delete(:product_category) |
54 | + # FIXME this is SLOOOOW | ||
54 | prod_cat_ids = prod_cat.map_traversal(&:id) if prod_cat | 55 | prod_cat_ids = prod_cat.map_traversal(&:id) if prod_cat |
55 | end | 56 | end |
56 | 57 |