summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-05-08 10:47:33 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-05-08 10:47:33 +0200
commitdfd451777c27be2ab7828910ebe2199735909d62 (patch)
tree95e7452b5780b6f34783e1276d5c6f243e33e599 /apps
parent8e565dd3e845bf6612df7dc4858d1d26924a5d82 (diff)
parentf2d23d7f027db63585073d45f3ad0804c6bd8a76 (diff)
downloadnextcloud-server-dfd451777c27be2ab7828910ebe2199735909d62.tar.gz
nextcloud-server-dfd451777c27be2ab7828910ebe2199735909d62.zip
Merge pull request #16183 from owncloud/fix-16147
check optional parameter before using it, fixes #16147
Diffstat (limited to 'apps')
-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();
}
}