Commit efd144da authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Type.Core.Predicate.buildSQLQuery: Do not pass ignored parameters.

Catalog discards empty string, so this code path's only effect is causing
log activity.
parent 9b470608
......@@ -313,8 +313,6 @@ class Predicate(XMLObject):
# Now merge identity and membership criteria
if len(sql_text):
catalog_kw['where_expression'] = SQLQuery(sql_text)
else:
catalog_kw['where_expression'] = ''
# force implicit join
catalog_kw['implicit_join'] = True
sql_query = portal_catalog.buildSQLQuery(**catalog_kw)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment