Commit a5ec7935 authored by Tatuya Kamada's avatar Tatuya Kamada

Set cell parameter before to get the enable field value, otherwise we can not...

Set cell parameter before to get the enable field value, otherwise we can not use the cell property in the enable field itself.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35547 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2475524b
...@@ -2386,13 +2386,13 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine): ...@@ -2386,13 +2386,13 @@ 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:
# 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)
# Field is editable only if listbox lists it in editable columns AND # Field is editable only if listbox lists it in editable columns AND
# if listbox_field is editable # if listbox_field is editable
cell_html = editable_field.render( cell_html = editable_field.render(
......
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