Commit dd4545e1 authored by Jérome Perrin's avatar Jérome Perrin

set default value to '', because if a value is None, render_element will display value="value"



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28644 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e7fc3abe
......@@ -1280,7 +1280,7 @@ class FloatWidget(TextWidget):
title='Precision',
description=(
"Number of digits after the decimal point"),
default=None,
default='',
required=0)
def format_value(self, field, value):
......@@ -1394,7 +1394,7 @@ class FloatWidget(TextWidget):
query : Passthrough of given value.
"""
input_style = field.get_value('input_style')
precision = field.get_value('precision')
precision = field.get_value('precision')
if precision not in (None, '') and precision != 0:
for x in xrange(1, precision):
input_style += '5'
......
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