Commit 8e513024 authored by Sebastien Robin's avatar Sebastien Robin

solved an incoding problem into sql with a listbox research on integer fields

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14786 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 83b9c078
......@@ -1148,6 +1148,8 @@ class FloatWidget(TextWidget):
input_style += '5'
else:
input_style = input_style.split('.')[0]
if type(value) == type(u''):
value = value.encode(field.get_form_encoding())
return {'query': value,
'format': input_style,
'type': 'float'}
......
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