Commit 5c5a42f33e22118c3fb8f6416cd0a95d7567fbff
1 parent
d6fc1887
Exists in
master
and in
29 other branches
ActionItem70: don't look for a category when there is not one
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@548 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/shared/categories_menu.rhtml
1 | 1 | <ul> |
2 | 2 | <% @environment.display_categories.each do |item| %> |
3 | - <li id='category<%= item.display_color %>' <%= 'class="active"' if (@category.top_ancestor == item) %> > | |
3 | + <li id='category<%= item.display_color %>' <%= 'class="active"' if (@category && (@category.top_ancestor == item)) %> > | |
4 | 4 | <%= item.name %> |
5 | 5 | <ul> |
6 | 6 | <% item.children.each do |child| %> | ... | ... |