7179: Select an existing person causes crash in searchfilter

This commit is contained in:
Josip 2014-01-06 20:53:15 +01:00
parent b0c0c03727
commit 568b4ee4a4

View File

@ -31,7 +31,7 @@ class SearchFilter(object):
self.invert = invert
def match(self, handle, db):
return self.invert ^ (self.func(handle).upper().find(self.text) != -1)
return self.invert ^ (self.func(handle).upper().find(str(self.text)) != -1)
class ExactSearchFilter(SearchFilter):
def __init__(self, func, text, invert):