Merge pull request #16183 from owncloud/fix-16147

check optional parameter before using it, fixes #16147
This commit is contained in:
Thomas Müller 2015-05-08 10:47:33 +02:00
commit dfd451777c

View file

@ -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();
}
}