Commit 12ef4f0e authored by mathieui's avatar mathieui

Fix handling of the jid-multi data form field

parent 51566463
......@@ -124,7 +124,8 @@ class TextMultiWin(FieldInput, Win):
FieldInput.__init__(self, field)
Win.__init__(self)
self.options = field.getValue()
self.options = self.options.split('\n') if self.options else []
if not isinstance(self.options, list):
self.options = self.options.split('\n') if self.options else []
self.val_pos = 0
self.edition_input = None
if not isinstance(self.options, list):
......
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