Commit b124000a authored by Sebastien Robin's avatar Sebastien Robin

check if there precision is not 0


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3292 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0fc7d16e
......@@ -778,7 +778,8 @@ class FloatWidget(TextWidget):
else:
value = value_list[0]
precision = field.get_value('precision')
value += '.'
if precision != 0:
value += '.'
if precision not in (None,''):
for i in range(0,precision):
if i < len(value_list[1]):
......
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