Bug #2567: Person Filter bug: 'people without a known birth date' doesn't work correctly
svn: r11619
This commit is contained in:
parent
57e07cfd22
commit
c1ef989533
@ -49,6 +49,10 @@ class NoBirthdate(Rule):
|
|||||||
if not birth_ref:
|
if not birth_ref:
|
||||||
return True
|
return True
|
||||||
birth = db.get_event_from_handle(birth_ref.ref)
|
birth = db.get_event_from_handle(birth_ref.ref)
|
||||||
if not birth.get_date_object():
|
if birth:
|
||||||
return True
|
birth_obj = birth.get_date_object()
|
||||||
|
if not birth_obj:
|
||||||
|
return True
|
||||||
|
if birth_obj.sortval == 0:
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user