dirty hack: suppress searching for accounts when no search text is given

This commit is contained in:
Helmut Merz 2014-01-09 11:33:52 +01:00
parent d93074a038
commit cd1f36c694

View file

@ -141,7 +141,8 @@ class Search(ConceptView):
title = None
types = request.get('searchType')
data = []
if title or (types and types != u'loops:concept:*'):
if title or (types and types not in
(u'loops:concept:*', 'loops:concept:account')):
if title is not None:
title = title.replace('(', ' ').replace(')', ' ').replace(' -', ' ')
#title = title.split(' ', 1)[0]