Commit 765c2e87 authored by Jérome Perrin's avatar Jérome Perrin

reset REQUEST.form in report sections push/pop, as current implementation of...

reset REQUEST.form in report sections push/pop, as current implementation of listox updates Selection with the content of REQUEST.form


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6199 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3234cf19
......@@ -225,6 +225,7 @@ class ReportSection:
preferences = {}
self.preferences = preferences
self.saved_preferences = {}
self.saved_request_form = {}
security.declarePublic('getTitle')
def getTitle(self):
......@@ -310,6 +311,9 @@ class ReportSection:
portal_selections.setSelectionSortOrder(selection_name,
self.selection_sort_order, REQUEST=REQUEST)
self.saved_request_form = REQUEST.form
REQUEST.form = {}
portal_pref = context.getPortalObject().portal_preferences
for pref, value in self.preferences.items() :
self.saved_preferences[pref] = portal_pref.getProperty(pref)
......@@ -366,7 +370,9 @@ class ReportSection:
portal_selections.setSelectionSortOrder(selection_name,
self.saved_selections[selection_name]['sort_order'],
REQUEST=REQUEST)
REQUEST.form = self.saved_request_form
for pref, value in self.saved_preferences.items() :
context.getPortalObject().portal_preferences.setPreference(pref, value)
......
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