filter empty search

This commit is contained in:
j 2010-07-15 14:12:04 +02:00
parent bca6408974
commit 01d1cf1ff8

View file

@ -139,7 +139,8 @@ def parseConditions(conditions, operator):
if q: conn.append(q)
pass
else:
conn.append(parseCondition(condition))
if condition.get('value', '') != '' or condition.get('operator', '') == '=':
conn.append(parseCondition(condition))
if conn:
q = conn[0]
for c in conn[1:]: