#11195 fixed widget groups when select all

This commit is contained in:
Daniel Cebrian 2023-05-29 13:41:17 +02:00
parent b4d1054b4f
commit fb8a54c42e
1 changed files with 6 additions and 0 deletions

View File

@ -395,6 +395,12 @@ class SystemGroupStatusWidget extends Widget
$user_groups = users_get_groups(false, 'AR', $return_all_group);
$selected_groups = explode(',', $this->values['groupId'][0]);
if (in_array(0, $selected_groups) === true) {
$selected_groups = [];
foreach (groups_get_all() as $key => $name_group) {
$selected_groups[] = groups_get_id($name_group);
}
}
// Recursion.
if ($this->values['groupRecursion'] === true) {