[Pkg-owncloud-commits] [owncloud] 19/123: check optional parameter before using it, fixes #16147

David Prévot taffit at moszumanska.debian.org
Tue May 19 23:55:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit f2d23d7f027db63585073d45f3ad0804c6bd8a76
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Thu May 7 22:18:29 2015 +0200

    check optional parameter before using it, fixes #16147
---
 apps/user_ldap/js/wizard/wizardTabAbstractFilter.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js b/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js
index b67392a..c9c3aeb 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();
 				}
 			}

-- 
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