Commit ff3e9a53 authored by Romain Courteaud's avatar Romain Courteaud

Selection's params attribute should be a dict (or it will be removed by

Selection.getParams method), so cast the value to a dict.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24125 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 80d978d7
...@@ -861,7 +861,7 @@ class ListBoxRenderer: ...@@ -861,7 +861,7 @@ class ListBoxRenderer:
# Create a selection, if not present, with the default sort order. # Create a selection, if not present, with the default sort order.
if selection is None: if selection is None:
selection = Selection(params = self.getDefaultParamList(), default_sort_on = self.getDefaultSortColumnList()) selection = Selection(params = dict(self.getDefaultParamList()), default_sort_on = self.getDefaultSortColumnList())
selection = selection.__of__(selection_tool) selection = selection.__of__(selection_tool)
# Or make sure all sort arguments are valid. # Or make sure all sort arguments are valid.
else: else:
......
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