From ef14f6bf65d0034492b1fd2e0149db4e70753277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sat, 15 Nov 2008 10:30:26 +0000 Subject: [PATCH] 2502: Filter in person View does not work. svn: r11304 --- 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 d6ae70acc..c679c2799 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.surname, name.suffix, name.title, - name.prefix, name.patronymic, name.call_name]: + name.prefix, name.patronymic, 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 0ca762433..1fe39991f 100644 --- a/src/Filters/Rules/Person/_SearchName.py +++ b/src/Filters/Rules/Person/_SearchName.py @@ -54,7 +54,7 @@ class SearchName(Rule): for name in [person.get_primary_name()] + person.get_alternate_names(): for field in [name.first_name, name.surname, name.suffix, name.title, - name.prefix, name.patronymic, name.call_name]: + name.prefix, name.patronymic, name.call]: if src and field.upper().find(src) != -1: return True else: