Commit 780bd26d authored by Romain Courteaud's avatar Romain Courteaud

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
parent dc1fa864
...@@ -257,14 +257,14 @@ class ListBoxWidget(Widget.Widget): ...@@ -257,14 +257,14 @@ class ListBoxWidget(Widget.Widget):
search = fields.CheckBoxField('search', search = fields.CheckBoxField('search',
title='Search Row', title='Search Row',
description=('Search Row'), description=('Search Row'),
default='', default=0,
required=0) required=0)
property_names.append('search') property_names.append('search')
select = fields.CheckBoxField('select', select = fields.CheckBoxField('select',
title='Select Column', title='Select Column',
description=('Select Column'), description=('Select Column'),
default='', default=0,
required=0) required=0)
property_names.append('select') property_names.append('select')
...@@ -272,7 +272,7 @@ class ListBoxWidget(Widget.Widget): ...@@ -272,7 +272,7 @@ class ListBoxWidget(Widget.Widget):
title='Anchor Column', title='Anchor Column',
description=( description=(
'An optional anchor column which can always clickable.'), 'An optional anchor column which can always clickable.'),
default='', default=0,
required=0) required=0)
property_names.append('anchor') property_names.append('anchor')
...@@ -312,7 +312,7 @@ class ListBoxWidget(Widget.Widget): ...@@ -312,7 +312,7 @@ class ListBoxWidget(Widget.Widget):
domain_tree = fields.CheckBoxField('domain_tree', domain_tree = fields.CheckBoxField('domain_tree',
title='Domain Tree', title='Domain Tree',
description=('Selection Tree'), description=('Selection Tree'),
default='', default=0,
required=0) required=0)
property_names.append('domain_tree') property_names.append('domain_tree')
...@@ -327,7 +327,7 @@ class ListBoxWidget(Widget.Widget): ...@@ -327,7 +327,7 @@ class ListBoxWidget(Widget.Widget):
report_tree = fields.CheckBoxField('report_tree', report_tree = fields.CheckBoxField('report_tree',
title='Report Tree', title='Report Tree',
description=('Report Tree'), description=('Report Tree'),
default='', default=0,
required=0) required=0)
property_names.append('report_tree') property_names.append('report_tree')
......
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