Merge branch 'ent-11195-dashboard-widget-groups-status-no-muestra-datos-al-seleccionar-all' into 'develop'

Ent 11195 dashboard widget groups status no muestra datos al seleccionar all

See merge request artica/pandorafms!5985
This commit is contained in:
Rafael Ameijeiras 2023-06-08 10:46:08 +00:00
commit de3f47bc71
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) {