summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-05-06 15:25:51 +0200
committerArthur Schiwon <blizzz@owncloud.com>2015-05-06 15:29:36 +0200
commit795a48d45c9cb1e568c27b43b837fdc7314ac1dc (patch)
treee664e1f58f6f716b64457e5a8bc3b7df06277f5a /apps/user_ldap/js
parent892e2a3321fa08f0ddad568c233eb38eeffa9486 (diff)
downloadnextcloud-server-795a48d45c9cb1e568c27b43b837fdc7314ac1dc.tar.gz
nextcloud-server-795a48d45c9cb1e568c27b43b837fdc7314ac1dc.zip
fix broken group presentation in selected groups list
Diffstat (limited to 'apps/user_ldap/js')
-rw-r--r--apps/user_ldap/js/wizard/wizardTabAbstractFilter.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js b/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js
index 702c30a5a69..16920199dc7 100644
--- a/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js
+++ b/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js
@@ -158,9 +158,12 @@ OCA = OCA || {};
/**
* sets the selected groups
*
- * @param {Array} groups
+ * @param {string} groups
*/
setGroups: function(groups) {
+ if(typeof groups === 'string') {
+ groups = groups.split("\n");
+ }
if(!this.isComplexGroupChooser) {
this.setElementValue(this.getGroupsItem().$element, groups);
this.getGroupsItem().$element.multiselect('refresh');
@@ -224,10 +227,10 @@ OCA = OCA || {};
$selectedGroups, $(this.tabID).find('.ldapManyGroupsSearch')
));
} else {
- if(_.isUndefined || only.toLowerCase() === 'available') {
+ if(only.toLowerCase() === 'available') {
this.filterOnType[0].updateOptions();
}
- if(_.isUndefined || only.toLowerCase() === 'selected') {
+ if(only.toLowerCase() === 'selected') {
this.filterOnType[1].updateOptions();
}
}