Commit 3e3d8f6d authored by Sebastien Robin's avatar Sebastien Robin

it is possible to use only one test instead of 2

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