Commit d2d9c114 authored by Ivan Tyagov's avatar Ivan Tyagov

Set cell a bit earlier so editable fields of listbox can use it.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38342 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d276661c
...@@ -2340,7 +2340,10 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine): ...@@ -2340,7 +2340,10 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
ignore_layout = int(request.get('ignore_layout', \ ignore_layout = int(request.get('ignore_layout', \
not request.get('is_web_mode', False) and 1 or 0)) not request.get('is_web_mode', False) and 1 or 0))
ui_domain = 'erp5_ui' 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
# permit this, we use the 'cell' value to pass the line object.
request.set('cell', brain)
html_list = [] html_list = []
# Generate page selection methods based on the Listbox id # Generate page selection methods based on the Listbox id
...@@ -2464,10 +2467,6 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine): ...@@ -2464,10 +2467,6 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
error_message = u'' error_message = u''
display_value = original_value display_value = original_value
# 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
# permit this, we use the 'cell' value to pass the line object.
request.set('cell', brain)
enabled = editable_field.get_value('enabled', REQUEST=request) enabled = editable_field.get_value('enabled', REQUEST=request)
editable = editable_field.get_value('editable', REQUEST=request) editable = editable_field.get_value('editable', REQUEST=request)
if enabled: if enabled:
......
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