From 7223423dc79acd120e05a23f20a8f1fb98d9cdda Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Wed, 8 Nov 2023 13:15:05 +0100 Subject: [PATCH] #12376 fixed color group and fixed status color in heatmap --- .../include/lib/TacticalView/elements/Groups.php | 9 +++++++-- pandora_console/views/tacticalView/view.php | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/lib/TacticalView/elements/Groups.php b/pandora_console/include/lib/TacticalView/elements/Groups.php index dfb40fb79d..4fe07b743a 100644 --- a/pandora_console/include/lib/TacticalView/elements/Groups.php +++ b/pandora_console/include/lib/TacticalView/elements/Groups.php @@ -148,11 +148,16 @@ class Groups extends Element $cont = 1; foreach ($modules as $key => $value) { $module_id = $value['id_agente_modulo']; - $db_status = modules_get_agentmodule_status($module_id); + $module_status = db_get_row( + 'tagente_estado', + 'id_agente_modulo', + $module_id, + ); + $module_value = modules_get_last_value($module_id); $status = ''; $title = ''; - modules_get_status($module_id, $db_status, $module_value, $status, $title); + modules_get_status($module_id, $module_status['estado'], $module_value, $status, $title); switch ($status) { case STATUS_MODULE_NO_DATA: // Not init status. diff --git a/pandora_console/views/tacticalView/view.php b/pandora_console/views/tacticalView/view.php index a7fad1ee86..308c9626e9 100644 --- a/pandora_console/views/tacticalView/view.php +++ b/pandora_console/views/tacticalView/view.php @@ -246,7 +246,7 @@
- getActiveAlerts(); ?> + getActiveAlerts(); ?> checkAclUserList() === true) : ?>