Bug #2567: Person Filter bug: 'people without a known birth date' doesn't work correctly
svn: r11620
This commit is contained in:
1 parent
a581f9a704
commit
7d6da4fedb
1 file changed
+6
-2
@@ -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
|
||||
Reference in new issue
Block a user