Commit 36d07429 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Fixed display of validator errors.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3303 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 94a5d7a2
......@@ -765,7 +765,10 @@ class FloatWidget(TextWidget):
if input_style.find('%')>=0:
percent=1
value = value * 100
value = str(float(value))
try :
value = str(float(value))
except ValueError:
return value
value_list = value.split('.')
integer = value_list[0]
if input_style.find(' ')>=0:
......
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