[Erp5-report] r19101 - /erp5/trunk/products/ERP5Form/MatrixBox.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Feb 6 14:43:07 CET 2008
Author: alex
Date: Wed Feb 6 14:43:06 2008
New Revision: 19101
URL: http://svn.erp5.org?rev=19101&view=rev
Log:
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.
Modified:
erp5/trunk/products/ERP5Form/MatrixBox.py
Modified: erp5/trunk/products/ERP5Form/MatrixBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/MatrixBox.py?rev=19101&r1=19100&r2=19101&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/MatrixBox.py (original)
+++ erp5/trunk/products/ERP5Form/MatrixBox.py Wed Feb 6 14:43:06 2008
@@ -338,11 +338,8 @@
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,
More information about the Erp5-report
mailing list