From cd1f36c6942c8a5a227a8cef4dbcf061772cbaec Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Thu, 9 Jan 2014 11:33:52 +0100 Subject: [PATCH] dirty hack: suppress searching for accounts when no search text is given --- expert/browser/search.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/expert/browser/search.py b/expert/browser/search.py index 49d58ff..307747c 100644 --- a/expert/browser/search.py +++ b/expert/browser/search.py @@ -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]