Commit 9a7c1a54 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Make sure ignore_layout is not lost when clicking on a link generated in a listbox.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13114 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 48650e7f
...@@ -1911,6 +1911,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine): ...@@ -1911,6 +1911,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
url_column_dict = dict(self.renderer.getUrlColumnList()) url_column_dict = dict(self.renderer.getUrlColumnList())
selection = self.renderer.getSelection() selection = self.renderer.getSelection()
selection_name = self.renderer.getSelectionName() selection_name = self.renderer.getSelectionName()
ignore_layout = self.renderer.request.get('ignore_layout', 0)
html_list = [] html_list = []
...@@ -1980,7 +1981,9 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine): ...@@ -1980,7 +1981,9 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
error = sys.exc_info()) error = sys.exc_info())
else: else:
try: try:
url = '%s/view?selection_index=%s&selection_name=%s&reset:int=1' % (brain.absolute_url(), self.index, selection_name) url = '%s/view?selection_index=%s&selection_name=%s&ignore_layout:int=%s&reset:int=1' % (
brain.absolute_url(),
self.index, selection_name, ignore_layout)
except AttributeError: except AttributeError:
pass pass
......
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