summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/js/wizard
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-05-07 22:18:29 +0200
committerArthur Schiwon <blizzz@owncloud.com>2015-05-07 22:18:29 +0200
commitf2d23d7f027db63585073d45f3ad0804c6bd8a76 (patch)
tree31f249edca835a296d8e5d488ce91420d4d806bf /apps/user_ldap/js/wizard
parent9f2f2821919ed770fd4ede17f27a22d6c17dc374 (diff)
downloadnextcloud-server-f2d23d7f027db63585073d45f3ad0804c6bd8a76.tar.gz
nextcloud-server-f2d23d7f027db63585073d45f3ad0804c6bd8a76.zip
check optional parameter before using it, fixes #16147
Diffstat (limited to 'apps/user_ldap/js/wizard')
-rw-r--r--apps/user_ldap/js/wizard/wizardTabAbstractFilter.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js b/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js
index b67392a4189..c9c3aeb241d 100644
--- a/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js
+++ b/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js
@@ -228,10 +228,10 @@ OCA = OCA || {};
$selectedGroups, $(this.tabID).find('.ldapManyGroupsSearch')
));
} else {
- if(only.toLowerCase() === 'available') {
+ if(_.isUndefined(only) || only.toLowerCase() === 'available') {
this.filterOnType[0].updateOptions();
}
- if(only.toLowerCase() === 'selected') {
+ if(_.isUndefined(only) || only.toLowerCase() === 'selected') {
this.filterOnType[1].updateOptions();
}
}