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,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):