From 516a4e19eef314dda5465df559b8df3ad4fb0b59 Mon Sep 17 00:00:00 2001 From: Alexandre Boeglin <alex@nexedi.com> Date: Wed, 6 Feb 2008 13:43:06 +0000 Subject: [PATCH] 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 --- product/ERP5Form/MatrixBox.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/product/ERP5Form/MatrixBox.py b/product/ERP5Form/MatrixBox.py index 4f24fd7267..ad95bd801a 100644 --- a/product/ERP5Form/MatrixBox.py +++ b/product/ERP5Form/MatrixBox.py @@ -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, -- 2.30.9