From 780bd26d84345372e3cc1ec115b1e063136f468c Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Fri, 29 Feb 2008 09:15:20 +0000 Subject: [PATCH] Initialize CheckBoxField default value to 0 instead of '', as some part of the page template expect some fields to return a int value. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19571 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/ListBox.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py index 5a73bb37a2..384f9e794c 100644 --- a/product/ERP5Form/ListBox.py +++ b/product/ERP5Form/ListBox.py @@ -257,14 +257,14 @@ class ListBoxWidget(Widget.Widget): 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 @@ class ListBoxWidget(Widget.Widget): 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 @@ class ListBoxWidget(Widget.Widget): 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 @@ class ListBoxWidget(Widget.Widget): report_tree = fields.CheckBoxField('report_tree', title='Report Tree', description=('Report Tree'), - default='', + default=0, required=0) property_names.append('report_tree') -- 2.30.9