From 460497f489a3b966946c7dcc5dff0b503e55688e Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Wed, 20 Oct 2010 20:06:36 +0000 Subject: [PATCH] fix error in changed filters svn: r16018 --- src/Filters/Rules/Person/_RegExpName.py | 2 +- src/Filters/Rules/Person/_SearchName.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Filters/Rules/Person/_RegExpName.py b/src/Filters/Rules/Person/_RegExpName.py index a39f76481..226c61e5b 100644 --- a/src/Filters/Rules/Person/_RegExpName.py +++ b/src/Filters/Rules/Person/_RegExpName.py @@ -60,7 +60,7 @@ class RegExpName(Rule): def apply(self,db,person): for name in [person.get_primary_name()] + person.get_alternate_names(): for field in [name.first_name, name.get_surname(), name.suffix, - name.title, name.nick, name.famnick, self.call]: + name.title, name.nick, name.famnick, name.call]: if self.match.match(field): return True else: diff --git a/src/Filters/Rules/Person/_SearchName.py b/src/Filters/Rules/Person/_SearchName.py index 678eab7bd..6d84a3186 100644 --- a/src/Filters/Rules/Person/_SearchName.py +++ b/src/Filters/Rules/Person/_SearchName.py @@ -55,7 +55,7 @@ class SearchName(Rule): for name in [person.get_primary_name()] + person.get_alternate_names(): for field in [name.first_name, name.get_surname(), name.suffix, - name.title, name.nick, name.famnick, self.call]: + name.title, name.nick, name.famnick, name.call]: if src and field.upper().find(src) != -1: return True else: