diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-05-07 22:18:29 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-05-07 22:18:29 +0200 |
commit | f2d23d7f027db63585073d45f3ad0804c6bd8a76 (patch) | |
tree | 31f249edca835a296d8e5d488ce91420d4d806bf /apps/user_ldap/js/wizard | |
parent | 9f2f2821919ed770fd4ede17f27a22d6c17dc374 (diff) | |
download | nextcloud-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.js | 4 |
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(); } } |