diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-07 15:14:49 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-07 15:14:57 +0100 |
commit | 952f1f3e603740eb724ab27919ca83b2ce804474 (patch) | |
tree | d43a10e728903809d8c26507e1b287f5bb6bde93 /apps/user_ldap/js | |
parent | e44b164f406b52530d81e755c9e1b959e0f1ef27 (diff) | |
download | nextcloud-server-952f1f3e603740eb724ab27919ca83b2ce804474.tar.gz nextcloud-server-952f1f3e603740eb724ab27919ca83b2ce804474.zip |
ensure multiselect always receives an array when setting its value, fixes #18734
Diffstat (limited to 'apps/user_ldap/js')
-rw-r--r-- | apps/user_ldap/js/wizard/wizardTabGeneric.js | 6 |
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 60e7cd2ad9e..8940a8468a0 100644 --- a/apps/user_ldap/js/wizard/wizardTabGeneric.js +++ b/apps/user_ldap/js/wizard/wizardTabGeneric.js @@ -198,9 +198,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')) { |