Commit dfd45177 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #16183 from owncloud/fix-16147

check optional parameter before using it, fixes #16147
parents 8e565dd3 f2d23d7f
......@@ -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();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment