From fb8a54c42e4090080537bf46d193297937f4e834 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 29 May 2023 13:41:17 +0200 Subject: [PATCH] #11195 fixed widget groups when select all --- .../include/lib/Dashboard/Widgets/system_group_status.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora_console/include/lib/Dashboard/Widgets/system_group_status.php b/pandora_console/include/lib/Dashboard/Widgets/system_group_status.php index 4b8924d668..02df4c2888 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/system_group_status.php +++ b/pandora_console/include/lib/Dashboard/Widgets/system_group_status.php @@ -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) {