Commit f1f629c8 authored by Sebastien Robin's avatar Sebastien Robin

the where_expression parameter was not always taken into account

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12038 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a6fddd97
......@@ -1916,7 +1916,7 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
where_expression_list.append(related_method(**table_id))
# Concatenate expressions
if kw.get('where_expression',None) is not None:
if len(where_expression) > 0:
if len(kw['where_expression']) > 0:
where_expression_list.append(kw['where_expression'])
where_expression = join(where_expression_list, ' AND ')
select_expression= join(select_expression_list,',')
......
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