Commit 8a842e7f authored by Aurel's avatar Aurel

call escape with a unicode string value


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21160 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a40c8167
......@@ -658,7 +658,7 @@ def SingleItemsWidget_render_items(self, field, key, value, REQUEST):
# XXX We want to make sure that we always have the current value in items. -yo
if not selected_found and value:
value = escape(value)
value = escape(ustr(value))
rendered_item = self.render_selected_item('??? (%s)' % value,
value,
key,
......
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