From 1ebfc582866ad4e8e31a88016818422e6f1f0103 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 26 Jan 2023 13:21:28 +0100 Subject: [PATCH] fix diabled and remove agents to policies pandora_enterprise#10084 --- pandora_console/include/functions_agents.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index d253365176..6e37a1e991 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -1369,12 +1369,14 @@ function agents_get_group_agents( 'id_agente', 'alias', 'ta.id_tmetaconsole_setup AS id_server', + 'ta.disabled', ]; } else { $fields = [ 'ta.id_tagente AS id_agente', 'alias', 'ta.id_tmetaconsole_setup AS id_server', + 'ta.disabled', ]; } } else { @@ -1383,6 +1385,7 @@ function agents_get_group_agents( $fields = [ 'id_agente', 'alias', + 'disabled', ]; } @@ -1427,6 +1430,13 @@ function agents_get_group_agents( $value = mb_strtoupper($row['alias'], 'UTF-8'); break; + case 'disabled': + $value = $row['alias']; + if ($row['disabled'] == 1) { + $value .= ' ('.__('Disabled').')'; + } + break; + default: $value = $row['alias']; break;