bug 9842; fix lineage quickreport when started from person with no parent
This commit is contained in:
parent
ce884b6578
commit
55edefd4b8
@ -137,14 +137,16 @@ def make_details(gender, person, sa, sd, database, stab) :
|
|||||||
ref.get_father_relation()) for ref in
|
ref.get_father_relation()) for ref in
|
||||||
family.get_child_ref_list()
|
family.get_child_ref_list()
|
||||||
if ref.ref == person_handle]
|
if ref.ref == person_handle]
|
||||||
if gender == Person.MALE :
|
if gender == Person.MALE:
|
||||||
person = database.get_person_from_handle(
|
parent_handle = family.get_father_handle()
|
||||||
family.get_father_handle())
|
|
||||||
refnr = 1
|
refnr = 1
|
||||||
else :
|
else:
|
||||||
person = database.get_person_from_handle(
|
parent_handle = family.get_mother_handle()
|
||||||
family.get_mother_handle())
|
|
||||||
refnr = 0
|
refnr = 0
|
||||||
|
if parent_handle:
|
||||||
|
person = database.get_person_from_handle(parent_handle)
|
||||||
|
else:
|
||||||
|
person = None
|
||||||
|
|
||||||
#We do not allow for same sex marriages when going up
|
#We do not allow for same sex marriages when going up
|
||||||
# that would complicate the code
|
# that would complicate the code
|
||||||
|
Loading…
Reference in New Issue
Block a user