Skip to content

Commit

Permalink
menu logic tidy-up
Browse files Browse the repository at this point in the history
  • Loading branch information
superdmp committed Jan 14, 2012
1 parent 8f5e2f8 commit 00b070c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arkestra_utilities/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def do_menu(self, node, menu, entity):
url = entity.get_related_info_page_url(menu["url_attribute"]),
parent = node
)
if getattr(new_node, "ancestor", None) or True:
# does this menu call for sub-menu items?
if menu.get("sub_menus", None):
plugin.add_links_to_other_items(instance)
for item in plugin.lists:
# and go through the other_items lists for each, creating a node for each
Expand Down

0 comments on commit 00b070c

Please sign in to comment.