NarWeb: Fixed siblings not displaying in birth year order; Bug#4079. Thanks kulath for the patch file.
svn: r15847
This commit is contained in:
parent
65ac980dae
commit
81aaf690f3
@ -4307,6 +4307,7 @@ class IndividualPage(BasePage):
|
|||||||
section += table
|
section += table
|
||||||
|
|
||||||
first = True
|
first = True
|
||||||
|
sibling = []
|
||||||
if parent_list:
|
if parent_list:
|
||||||
for family_handle in parent_list:
|
for family_handle in parent_list:
|
||||||
family = db.get_family_from_handle(family_handle)
|
family = db.get_family_from_handle(family_handle)
|
||||||
@ -4314,7 +4315,6 @@ class IndividualPage(BasePage):
|
|||||||
# Get the mother and father relationships
|
# Get the mother and father relationships
|
||||||
frel = None
|
frel = None
|
||||||
mrel = None
|
mrel = None
|
||||||
sibling = set()
|
|
||||||
|
|
||||||
child_handle = self.person.get_handle()
|
child_handle = self.person.get_handle()
|
||||||
child_ref_list = family.get_child_ref_list()
|
child_ref_list = family.get_child_ref_list()
|
||||||
@ -4349,8 +4349,9 @@ class IndividualPage(BasePage):
|
|||||||
|
|
||||||
first = False
|
first = False
|
||||||
if len(child_ref_list) > 1:
|
if len(child_ref_list) > 1:
|
||||||
childlist = [child_ref.ref for child_ref in child_ref_list]
|
childlist = [child_ref.ref for child_ref in child_ref_list
|
||||||
sibling.update(childlist)
|
if child_ref.ref not in sibling]
|
||||||
|
sibling.extend(childlist)
|
||||||
|
|
||||||
# now that we have all siblings in families of the person,
|
# now that we have all siblings in families of the person,
|
||||||
# display them...
|
# display them...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user