Commit 87e685aa authored by Jérome Perrin's avatar Jérome Perrin

revert 26047 and explain the reason of clearing request.form here


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26064 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 40dd93d3
......@@ -342,6 +342,18 @@ class ReportSection:
self.saved_request_form = REQUEST.form
# REQUEST.form is cleared here, because when rendering a report section
# with a listbox, listbox gets parameters from request.form and edits
# selection with those parameters, so if you happen to pass explicitly
# selection params that have the same name as some request parameters (some
# dialog fields) but different values, listbox would not use your explicit
# parameters, but the ones from REQUEST.form.
# As a result, request parameters are not available inside a report
# section, and if one needs to access report parameters from inside a
# report section, he have to store them in selection parameters in the
# report method (the method returning the list of ReportSection)
REQUEST.form = {}
security.declarePublic('popReport')
def popReport(self, context, render_prefix=None):
REQUEST = get_request()
......
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