NarWeb: Fixed siblings not displaying in birth year order; Bug#4079. Thanks kulath for the patch file.

svn: r15847
This commit is contained in:
Rob G. Healey 2010-09-01 21:12:23 +00:00
parent 65ac980dae
commit 81aaf690f3

View File

@ -4307,6 +4307,7 @@ class IndividualPage(BasePage):
section += table
first = True
sibling = []
if parent_list:
for family_handle in parent_list:
family = db.get_family_from_handle(family_handle)
@ -4314,7 +4315,6 @@ class IndividualPage(BasePage):
# Get the mother and father relationships
frel = None
mrel = None
sibling = set()
child_handle = self.person.get_handle()
child_ref_list = family.get_child_ref_list()
@ -4349,8 +4349,9 @@ class IndividualPage(BasePage):
first = False
if len(child_ref_list) > 1:
childlist = [child_ref.ref for child_ref in child_ref_list]
sibling.update(childlist)
childlist = [child_ref.ref for child_ref in child_ref_list
if child_ref.ref not in sibling]
sibling.extend(childlist)
# now that we have all siblings in families of the person,
# display them...