Merged in [17543] from rjsparks@nostrum.com:

Repair construction of group_hierarchy used for the customisation controls at /meeting/upcoming. Fixes #2940.
 - Legacy-Id: 17545
Note: SVN reference [17543] has been migrated to Git commit 8e9d65e7e0
This commit is contained in:
Henrik Levkowetz 2020-03-26 20:31:26 +00:00
commit cb3e565d13

View file

@ -288,12 +288,14 @@ def data_for_meetings_overview(meetings, interim_status=None):
parent = parents.get(s.group.parent_id)
if not parent:
parent = s.group.parent
parent.group_list = []
parent.group_list = set()
group_hierarchy.append(parent)
parents[s.group.parent_id] = parent
parent.group_list.append(s.group)
parent.group_list.add(s.group)
for p in parents.values():
p.group_list = list(p.group_list)
p.group_list.sort(key=lambda g: g.acronym)
# set some useful attributes