Commit 7e89c560 authored by Yoshinori Okuji's avatar Yoshinori Okuji

getSelectionParams should use {} instead of [] for the default return value.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1206 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d1853df7
......@@ -150,10 +150,10 @@ class SelectionTool( UniqueObject, SimpleItem ):
"""
Returns the params in the selection
"""
if params is None: params = []
if params is None: params = {}
selection = self.getSelectionFor(selection_name, REQUEST=REQUEST)
if selection is not None:
if len(selection.selection_columns) > 0:
if len(selection.selection_params) > 0:
return selection.getSelectionParams()
else:
return params
......
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