Commit 83b9c078 authored by Sebastien Robin's avatar Sebastien Robin

solved an incoding problem into sql with a listbox research

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14785 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3faddc24
......@@ -780,6 +780,8 @@ class PatchedDateTimeWidget(DateTimeWidget):
format_dict = self.format_to_sql_format_dict
input_order = format_dict.get(self.getInputOrder(field),
self.sql_format_default)
if type(value) == type(u''):
value = value.encode(field.get_form_encoding())
return {'query': value,
'format': field.get_value('date_separator').join(input_order),
'type': 'date'}
......
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