Fix handling of the jid-multi data form field

This commit is contained in:
mathieui 2016-04-05 21:17:31 +02:00
parent 51566463bd
commit 12ef4f0e0e

View file

@ -124,6 +124,7 @@ class TextMultiWin(FieldInput, Win):
FieldInput.__init__(self, field)
Win.__init__(self)
self.options = field.getValue()
if not isinstance(self.options, list):
self.options = self.options.split('\n') if self.options else []
self.val_pos = 0
self.edition_input = None