Fix HandleError on IsLessThanNthGenerationAncestorOf filters
Fixes #10286
This commit is contained in:
parent
b9b06f1668
commit
33ebd5d0b0
@ -187,6 +187,7 @@ editor_rule_list = [
|
|||||||
HasNote,
|
HasNote,
|
||||||
HasNoteRegexp,
|
HasNoteRegexp,
|
||||||
RegExpIdOf,
|
RegExpIdOf,
|
||||||
|
RegExpName,
|
||||||
Disconnected,
|
Disconnected,
|
||||||
ChangedSince,
|
ChangedSince,
|
||||||
IsRelatedWith,
|
IsRelatedWith,
|
||||||
|
@ -80,6 +80,8 @@ class IsLessThanNthGenerationAncestorOfBookmarked(Rule):
|
|||||||
|
|
||||||
p = self.db.get_person_from_handle(handle)
|
p = self.db.get_person_from_handle(handle)
|
||||||
fam_id = p.get_main_parents_family_handle()
|
fam_id = p.get_main_parents_family_handle()
|
||||||
|
if not fam_id:
|
||||||
|
return
|
||||||
fam = self.db.get_family_from_handle(fam_id)
|
fam = self.db.get_family_from_handle(fam_id)
|
||||||
if fam:
|
if fam:
|
||||||
f_id = fam.get_father_handle()
|
f_id = fam.get_father_handle()
|
||||||
|
@ -73,6 +73,8 @@ class IsLessThanNthGenerationAncestorOfDefaultPerson(Rule):
|
|||||||
|
|
||||||
p = self.db.get_person_from_handle(handle)
|
p = self.db.get_person_from_handle(handle)
|
||||||
fam_id = p.get_main_parents_family_handle()
|
fam_id = p.get_main_parents_family_handle()
|
||||||
|
if not fam_id:
|
||||||
|
return
|
||||||
fam = self.db.get_family_from_handle(fam_id)
|
fam = self.db.get_family_from_handle(fam_id)
|
||||||
if fam:
|
if fam:
|
||||||
f_id = fam.get_father_handle()
|
f_id = fam.get_father_handle()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user