[Pkg-owncloud-commits] [owncloud] 57/86: ensure multiselect always receives an array when setting its value, fixes #18734
David Prévot
taffit at moszumanska.debian.org
Tue Dec 22 16:52:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.1.5
in repository owncloud.
commit 6bedaf0f69a89785457424befb46431289324b4c
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 b755f3c..7372fed 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')) {
--
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