Commit 00b6cfdd authored by Jérome Perrin's avatar Jérome Perrin

Formulator: TextAreaWidget should convert to string to support displaying Products.ERP5Type.Message

parent fe0660f4
......@@ -629,6 +629,8 @@ class TextAreaWidget(Widget):
if value is None:
return ''
if not isinstance(value, (tuple, list)):
if not isinstance(value, basestring):
value = str(value)
value = value.split('\n')
line_separator = '<br/>'
value_list = [escape(part).replace('\n', line_separator) for part in value]
......
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