From 12ef4f0e0e670871d954130e07a3861a5e990d59 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 5 Apr 2016 21:17:31 +0200 Subject: Fix handling of the jid-multi data form field --- src/windows/data_forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/windows/data_forms.py b/src/windows/data_forms.py index 0978f5e3..410648ec 100644 --- a/src/windows/data_forms.py +++ b/src/windows/data_forms.py @@ -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): -- cgit v1.2.3