Commit c26de0f6 authored by Jérome Perrin's avatar Jérome Perrin

mistake in 34923

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34951 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c860f1e7
......@@ -376,7 +376,7 @@ class LinesValidator(StringBaseValidator):
value = StringBaseValidator.validate(self, field, key, REQUEST)
# Added as a patch for hidden values
if isinstance(value, (list, tuple)):
value = value.join('\n')
value = '\n'.join(value)
# we need to add this check again
if value == "" and not field.get_value('required'):
return []
......
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