From b999e2df7834e6a917f66ba1880fe5f040549745 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Wed, 14 Dec 2016 10:20:34 +0100 Subject: [PATCH] 9563: Sorting in family tab of narrated web report --- gramps/plugins/webreport/narrativeweb.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/webreport/narrativeweb.py b/gramps/plugins/webreport/narrativeweb.py index 2001108bd..17433aff6 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -3195,9 +3195,11 @@ class FamilyPages(BasePage): for person_handle in sorted(handle_list, key=lambda x: sort_on_name_and_grampsid(x, self.dbase_)): person = self.dbase_.get_person_from_handle(person_handle) if person: - family_list = pers_fam_dict[person_handle] + family_list = person.get_family_handle_list() first_family = True - for family in family_list: + for family_handle in family_list: + family = self.dbase_.get_family_from_handle(family_handle) + trow = Html("tr") tbody += trow