From 751cb7380bc452ccfe8733227997622cb2114814 Mon Sep 17 00:00:00 2001 From: Daniel Barbero Martin Date: Thu, 2 Dec 2021 13:52:56 +0100 Subject: [PATCH] wip reports alert actions --- .../include/functions_reporting.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index f2c325ead1..17d9824943 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -2691,15 +2691,6 @@ function reporting_alert_report_actions($report, $content) if (isset($report['id_template']) === true && empty($resport['id_template']) === false ) { - $modules = json_decode( - io_safe_output(base64_decode($es['module'])), - true - ); - $agents = json_decode( - io_safe_output(base64_decode($es['id_agents'])), - true - ); - } else { if (is_metaconsole() === true) { $server_id = metaconsole_get_id_server($content['server_name']); $modules = [$server_id.'|'.$content['id_agent_module']]; @@ -2708,6 +2699,15 @@ function reporting_alert_report_actions($report, $content) $modules = [$content['id_agent_module']]; $agents = [$content['id_agent']]; } + } else { + $modules = json_decode( + io_safe_output(base64_decode($es['module'])), + true + ); + $agents = json_decode( + io_safe_output(base64_decode($es['id_agents'])), + true + ); } $period = $content['period'];