Commit c03d534a authored by Jérome Perrin's avatar Jérome Perrin

always reset selection params to empty in popReport


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26624 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f7c48ce5
......@@ -393,10 +393,11 @@ class ReportSection:
REQUEST,
self.saved_selections[selection_name]['display_mode'],
selection_name=selection_name)
# first make sure no parameters that have been pushed are kept
portal_selections.setSelectionParamsFor(selection_name,
{}, REQUEST=REQUEST)
if self.selection_params is not None:
# first make sure no parameters that have been pushed are erased
portal_selections.setSelectionParamsFor(selection_name,
{}, REQUEST=REQUEST)
# then restore the original params
portal_selections.setSelectionParamsFor(selection_name,
self.saved_selections[selection_name]['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