Commit 516a4e19 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Pass cell=None, cell_index and cell_position to my_field.get_value when cell

is None, so that non hidden matrixbox fields that use any of these in their
default TALES expression do not break.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19101 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 34590071
......@@ -338,11 +338,8 @@ class MatrixBoxWidget(Widget.Widget):
list_result_lines.append(attribute_value)
else:
if my_field.get_value('hidden'):
attribute_value = my_field.get_value('default',
cell_index=kw, cell_position=(i,j,k))
else :
attribute_value = my_field.get_orig_value('default')
attribute_value = my_field.get_value('default', cell=None,
cell_index=kw, cell_position=(i,j,k))
if render_format == 'html':
REQUEST['cell'] = None
cell_body += str(my_field.render(value=attribute_value,
......
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