From 2f69a94bcf1ec4726116c57106739824c9b7ee1c Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 5 Feb 2013 12:24:57 +0100 Subject: [PATCH] Bug fix for --search -C --- plugins/generic/search.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/generic/search.py b/plugins/generic/search.py index 6c9bdffbc..a700486bf 100644 --- a/plugins/generic/search.py +++ b/plugins/generic/search.py @@ -541,12 +541,11 @@ class Search: query = rootQuery.blind.query2 if query.endswith("'%s')"): - query = query[:-1] + " AND %s)" % colQuery + query = query[:-1] + " AND %s)" % (colQuery + whereTblsQuery) else: - query += " AND %s" % colQuery + query += " AND %s" % (colQuery + whereTblsQuery) query = safeStringFormat(query, db) - query += whereTblsQuery query = agent.limitQuery(index, query) tbl = unArrayizeValue(inject.getValue(query, union=False, error=False))