Bug #2567: Person Filter bug: 'people without a known birth date' doesn't work correctly

svn: r11620
This commit is contained in:
Doug Blank 2009-01-13 22:25:21 +00:00
parent a581f9a704
commit 7d6da4fedb

View File

@ -49,6 +49,10 @@ class NoBirthdate(Rule):
if not birth_ref:
return True
birth = db.get_event_from_handle(birth_ref.ref)
if not birth.get_date_object():
return True
if birth:
birth_obj = birth.get_date_object()
if not birth_obj:
return True
if birth_obj.sortval == 0:
return True
return False