diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-07 15:14:49 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-09 20:07:38 +0100 |
commit | eba656c7484f30331216d61b3d1fd747dbe41463 (patch) | |
tree | dce7e31ccd7bfa5655c4e625c5b2cad94653855e /apps/user_ldap | |
parent | fc0e6f2b11d63b996b9b55516447bfaba26c12e7 (diff) | |
download | nextcloud-server-eba656c7484f30331216d61b3d1fd747dbe41463.tar.gz nextcloud-server-eba656c7484f30331216d61b3d1fd747dbe41463.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.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')) { |