author | Sverre Rabbelier <srabbelier@gmail.com> |
Sun, 01 Feb 2009 20:41:58 +0000 | |
changeset 1162 | 1d9396d75c13 |
parent 1161 | ad352f3a37d3 |
child 1163 | d8c50be19232 |
--- a/app/soc/views/models/program.py Sun Feb 01 17:52:12 2009 +0000 +++ b/app/soc/views/models/program.py Sun Feb 01 20:41:58 2009 +0000 @@ -178,9 +178,13 @@ except out_of_band.Error: pass + items = sidebar.getSidebarMenu(id, user, items, params=params) + if not items: + continue + menu = {} menu['heading'] = entity.short_name - menu['items'] = sidebar.getSidebarMenu(id, user, items, params=params) + menu['items'] = items menu['group'] = 'Programs' menus.append(menu)