Commit a34913e3 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix incomplete parameter renaming.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22009 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 16b3f362
......@@ -266,7 +266,7 @@ class ReportSection:
_no_parameter_ = []
security.declarePublic('pushReport')
def pushReport(self, context, field_prefix=None):
def pushReport(self, context, render_prefix=None):
REQUEST = get_request()
for k,v in self.param_dict.items():
self.saved_request[k] = REQUEST.form.get(k, self._no_parameter_)
......@@ -276,8 +276,8 @@ class ReportSection:
selection_list = [self.selection_name]
if self.getFormId() and hasattr(context[self.getFormId()], 'listbox') :
selection_name = context[self.getFormId()].listbox.get_value('selection_name')
if field_prefix is not None:
selection_name = '%s_%s' % (field_prefix, selection_name)
if render_prefix is not None:
selection_name = '%s_%s' % (render_prefix, selection_name)
selection_list += [selection_name]
# save report's selection and orignal form's selection,
#as ListBox will overwrite it
......@@ -330,7 +330,7 @@ class ReportSection:
REQUEST.form = {}
security.declarePublic('popReport')
def popReport(self, context, field_prefix=None):
def popReport(self, context, render_prefix=None):
REQUEST = get_request()
for k,v in self.param_dict.items():
if self.saved_request[k] is self._no_parameter_:
......@@ -342,7 +342,7 @@ class ReportSection:
selection_list = []
if self.getFormId() and hasattr(context[self.getFormId()], 'listbox') :
selection_name = context[self.getFormId()].listbox.get_value('selection_name')
if field_prefix is not None:
if render_prefix is not None:
# Return before cleanup, because there is no interest in cleaning up
# what won't be shared.
return
......
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