Commit 019c70b9 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5357 Do not empty groups when applying roles and groups tab template

parent 466f391f
......@@ -315,16 +315,12 @@ class userRoles extends simplePlugin
if (isset($this->attrs['userGroups'])) {
unset($this->attrs['userGroups']['count']);
$this->groupsMembership = $this->attrs['userGroups'];
} else {
$this->groupsMembership = array();
}
$this->savedRolesMembership = $this->rolesMembership;
if (isset($this->attrs['userRoles'])) {
unset($this->attrs['userRoles']['count']);
$this->rolesMembership = $this->attrs['userRoles'];
} else {
$this->rolesMembership = array();
}
}
}
Markdown is supported
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