Commit 2631413b authored by Romain Courteaud's avatar Romain Courteaud

Propagate editable_mode when browsing listbox lines.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40376 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 69aa89da
......@@ -2350,6 +2350,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
selection_name = renderer.getSelectionName()
ignore_layout = int(request.get('ignore_layout', \
not request.get('is_web_mode', False) and 1 or 0))
editable_mode = int(request.get('editable_mode', 0))
ui_domain = 'erp5_ui'
# We need a way to pass the current line object (ie. brain) to the
# field which is being displayed. Since the render_view API did not
......@@ -2435,6 +2436,8 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
params = []
if ignore_layout:
params.append('ignore_layout:int=1')
if editable_mode:
params.append('editable_mode:int=1')
if selection_name:
params.extend(('selection_name=%s' % selection_name,
'selection_index=%s' % self.index,
......
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