2502: Filter in person View does not work.

svn: r11303
This commit is contained in:
Jérôme Rapinat 2008-11-15 10:28:21 +00:00
parent 7952cb5fb2
commit 0e6a08dad0
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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: