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,6 +778,7 @@ class FloatWidget(TextWidget): ...@@ -778,6 +778,7 @@ class FloatWidget(TextWidget):
else: else:
value = value_list[0] value = value_list[0]
precision = field.get_value('precision') precision = field.get_value('precision')
if precision != 0:
value += '.' value += '.'
if precision not in (None,''): if precision not in (None,''):
for i in range(0,precision): for i in range(0,precision):
......
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