From ccfb85df1226ff6f8e6205de1f03a34b34026c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Su=C3=A1rez?= Date: Thu, 11 Apr 2024 15:36:17 -0600 Subject: [PATCH] Fix sql error on reporting builder --- .../godmode/reporting/reporting_builder.item_editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 5087bd5349..9cab099760 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -2338,7 +2338,7 @@ if (is_metaconsole() === true) { if ($idAgent) { $sql = 'SELECT id_agente_modulo, nombre FROM tagente_modulo - WHERE id_agente = '.$idAgent.' AND delete_pending = 0'; + WHERE id_agente = "'.$idAgent["id_agent"].'" AND delete_pending = 0'; if ($meta) { $connection = metaconsole_get_connection($server_name);