summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-12-07 15:14:49 +0100
committerArthur Schiwon <blizzz@owncloud.com>2015-12-09 20:12:02 +0100
commit6bedaf0f69a89785457424befb46431289324b4c (patch)
treec6006b9f992e27334e9048de9e688814758e982e /apps/user_ldap
parentc132f91f9dd0881f3cc44f8d50dbf6a883d1b576 (diff)
downloadnextcloud-server-6bedaf0f69a89785457424befb46431289324b4c.tar.gz
nextcloud-server-6bedaf0f69a89785457424befb46431289324b4c.zip
ensure multiselect always receives an array when setting its value, fixes #18734
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/js/wizard/wizardTabGeneric.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/user_ldap/js/wizard/wizardTabGeneric.js b/apps/user_ldap/js/wizard/wizardTabGeneric.js
index b755f3ca060..7372fedf5bd 100644
--- a/apps/user_ldap/js/wizard/wizardTabGeneric.js
+++ b/apps/user_ldap/js/wizard/wizardTabGeneric.js
@@ -192,9 +192,13 @@ OCA = OCA || {};
return;
}
- // deal with text area
+ // special cases: deal with text area and multiselect
if ($element.is('textarea') && $.isArray(value)) {
value = value.join("\n");
+ } else if($element.hasClass(this.multiSelectPluginClass)) {
+ if(!_.isArray(value)) {
+ value = value.split("\n");
+ }
}
if ($element.is('span')) {