7020: Date filtering fails to work on Family Events in 3.4.6 or 4.0.2; typo, missing 'not'; changed date before and after max to be 9999

svn: r22919
This commit is contained in:
Doug Blank 2013-08-28 12:00:00 +00:00
parent 62854bb089
commit 5a1bddb967
2 changed files with 4 additions and 4 deletions

View File

@ -83,7 +83,7 @@ class HasFamilyEvent(Rule):
if not self.match_substring(3, event.get_description()): if not self.match_substring(3, event.get_description()):
val = 0 val = 0
if self.date: if self.date:
if event.get_date_object().match(self.date): if not event.get_date_object().match(self.date):
val = 0 val = 0
if self.list[2]: if self.list[2]:
place_id = event.get_place_handle() place_id = event.get_place_handle()

View File

@ -1176,13 +1176,13 @@ class GrampsPreferences(ConfigureDialog):
self.add_spinner(table, self.add_spinner(table,
_('Date about range'), _('Date about range'),
0, 'behavior.date-about-range', (1, 80)) 0, 'behavior.date-about-range', (1, 9999))
self.add_spinner(table, self.add_spinner(table,
_('Date after range'), _('Date after range'),
1, 'behavior.date-after-range', (1, 80)) 1, 'behavior.date-after-range', (1, 9999))
self.add_spinner(table, self.add_spinner(table,
_('Date before range'), _('Date before range'),
2, 'behavior.date-before-range', (1, 80)) 2, 'behavior.date-before-range', (1, 9999))
self.add_spinner(table, self.add_spinner(table,
_('Maximum age probably alive'), _('Maximum age probably alive'),
3, 'behavior.max-age-prob-alive', (80, 140)) 3, 'behavior.max-age-prob-alive', (80, 140))