[Erp5-report] r19571 - /erp5/trunk/products/ERP5Form/ListBox.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Feb 29 10:15:20 CET 2008
Author: romain
Date: Fri Feb 29 10:15:20 2008
New Revision: 19571
URL: http://svn.erp5.org?rev=19571&view=rev
Log:
Initialize CheckBoxField default value to 0 instead of '', as some part of the
page template expect some fields to return a int value.
Modified:
erp5/trunk/products/ERP5Form/ListBox.py
Modified: erp5/trunk/products/ERP5Form/ListBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ListBox.py?rev=19571&r1=19570&r2=19571&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py Fri Feb 29 10:15:20 2008
@@ -257,14 +257,14 @@
search = fields.CheckBoxField('search',
title='Search Row',
description=('Search Row'),
- default='',
+ default=0,
required=0)
property_names.append('search')
select = fields.CheckBoxField('select',
title='Select Column',
description=('Select Column'),
- default='',
+ default=0,
required=0)
property_names.append('select')
@@ -272,7 +272,7 @@
title='Anchor Column',
description=(
'An optional anchor column which can always clickable.'),
- default='',
+ default=0,
required=0)
property_names.append('anchor')
@@ -312,7 +312,7 @@
domain_tree = fields.CheckBoxField('domain_tree',
title='Domain Tree',
description=('Selection Tree'),
- default='',
+ default=0,
required=0)
property_names.append('domain_tree')
@@ -327,7 +327,7 @@
report_tree = fields.CheckBoxField('report_tree',
title='Report Tree',
description=('Report Tree'),
- default='',
+ default=0,
required=0)
property_names.append('report_tree')
More information about the Erp5-report
mailing list