[Pkg-owncloud-commits] [owncloud] 58/107: ensure multiselect always receives an array when setting its value, fixes #18734

David Prévot taffit at moszumanska.debian.org
Thu Dec 17 19:40:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit eba656c7484f30331216d61b3d1fd747dbe41463
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Mon Dec 7 15:14:49 2015 +0100

    ensure multiselect always receives an array when setting its value, fixes #18734
---
 apps/user_ldap/js/wizard/wizardTabGeneric.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/apps/user_ldap/js/wizard/wizardTabGeneric.js b/apps/user_ldap/js/wizard/wizardTabGeneric.js
index 60e7cd2..8940a84 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')) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list