Fix 807262: true/false searches don't work on device views.

This commit is contained in:
Charles Haley 2011-07-08 07:50:51 +01:00
parent f01ff5531a
commit 231c0a4bbf

View File

@ -950,11 +950,11 @@ class OnDeviceSearch(SearchQueryParser): # {{{
for locvalue in locations:
accessor = q[locvalue]
if query == 'true':
if accessor(row) is not None:
if accessor(row):
matches.add(index)
continue
if query == 'false':
if accessor(row) is None:
if not accessor(row):
matches.add(index)
continue
if locvalue == 'inlibrary':