From bdbfe81f3155926f81c5acd295f4837113f13928 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Tue, 13 Apr 2021 12:24:35 +0200 Subject: [PATCH] Fixed id_agente_modulo in sql condiction --- pandora_console/operation/agentes/status_monitor.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index ee20c2d8c1..a6811c1856 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -244,6 +244,10 @@ if ($ag_modulename != '') { $sql_conditions .= " AND tagente_modulo.nombre LIKE '%".$ag_modulename."%'"; } +if ($id_module) { + $sql_conditions .= sprintf(' AND tagente_modulo.id_agente_modulo = \'%d\'', $id_module); +} + if ($module_option !== 0) { if ($module_option == 1) { // Only enabled