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

svn: r11619
This commit is contained in:
Doug Blank 2009-01-13 22:25:05 +00:00
parent 57e07cfd22
commit c1ef989533

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():
if birth:
birth_obj = birth.get_date_object()
if not birth_obj:
return True
if birth_obj.sortval == 0:
return True
return False