Commit b351579ccd9fb37ec3ca4a3d08cef87aa003ca7b

Authored by AntonioTerceiro
1 parent e8d3191c

ActionItem356: workaround for select_categories

don't load the entire category hierarchy for now; later this must be
changed to load categories on-demand (as users go opening children of
initial categories)


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1960 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
app/helpers/application_helper.rb
... ... @@ -502,7 +502,8 @@ module ApplicationHelper
502 502 }')
503 503 environment.top_level_categories.each do |toplevel|
504 504 next if toplevel.is_a?(ProductCategory)
505   - toplevel.map_traversal do |cat|
  505 + # FIXME
  506 + toplevel.children_for_menu do |cat|
506 507 if cat.top_level?
507 508 result << '<div class="categorie_box">'
508 509 result << icon_button( :down, _('open'), '#', :onclick => 'open_close_cat(this); return false' )
... ...