Commit 9f8d6d7c authored by Vincent Pelletier's avatar Vincent Pelletier

Store prefixed selection name into the request, so that rendered field's tales...

Store prefixed selection name into the request, so that rendered field's tales expressions can know it.
This should have been commited around r22002.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22231 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2bcc0d80
......@@ -281,6 +281,7 @@ class ReportSection:
selection_name = context[self.getFormId()].listbox.get_value('selection_name')
if render_prefix is not None:
selection_name = '%s_%s' % (render_prefix, selection_name)
REQUEST.other['prefixed_selection_name'] = selection_name
selection_list += [selection_name]
# save report's selection and orignal form's selection,
#as ListBox will overwrite it
......@@ -356,6 +357,7 @@ class ReportSection:
if self.getFormId() and hasattr(context[self.getFormId()], 'listbox') :
selection_name = context[self.getFormId()].listbox.get_value('selection_name')
if render_prefix is not None:
del REQUEST.other['prefixed_selection_name']
# 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