Ignore delete groups

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2020-01-24 16:03:39 +01:00
parent daf1d74af9
commit 8905fd6f7f
No known key found for this signature in database
GPG key ID: 36E3664E099D0614

View file

@ -52,14 +52,18 @@ OC.Settings = _.extend(OC.Settings, {
var groups = $(element).val();
var selection;
if (groups && results.length > 0) {
selection = _.map((groups || []).split('|').sort(), function(groupId) {
return {
id: groupId,
displayname: results.find(function (group) {
return group.id === groupId;
}).displayname
};
});
selection = _.map(_.filter((groups || []).split('|').sort(), function(groupId) {
return results.find(function(group) {
return group.id === groupId
}) !== undefined
}), function(groupId) {
return {
id: groupId,
displayname: results.find(function(group) {
return group.id === groupId
}).displayname
}
})
} else if (groups) {
selection = _.map((groups || []).split('|').sort(), function(groupId) {
return {
@ -93,4 +97,4 @@ OC.Settings = _.extend(OC.Settings, {
});
}
}
});
});