Commit 795a48d4 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

fix broken group presentation in selected groups list

parent 892e2a33
......@@ -158,9 +158,12 @@ OCA = OCA || {};
/**
* sets the selected groups
*
* @param {Array} groups
* @param {string} groups
*/
setGroups: function(groups) {
if(typeof groups === 'string') {
groups = groups.split("\n");
}
if(!this.isComplexGroupChooser) {
this.setElementValue(this.getGroupsItem().$element, groups);
this.getGroupsItem().$element.multiselect('refresh');
......@@ -224,10 +227,10 @@ OCA = OCA || {};
$selectedGroups, $(this.tabID).find('.ldapManyGroupsSearch')
));
} else {
if(_.isUndefined || only.toLowerCase() === 'available') {
if(only.toLowerCase() === 'available') {
this.filterOnType[0].updateOptions();
}
if(_.isUndefined || only.toLowerCase() === 'selected') {
if(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