From 9d5dc354b6dff74810b112d9b6ce18e618552e26 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Fri, 2 Jun 2023 13:11:41 +0200 Subject: [PATCH 1/2] #11444 fixed wizard in visual console meta --- .../godmode/reporting/visual_console_builder.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/reporting/visual_console_builder.php b/pandora_console/godmode/reporting/visual_console_builder.php index 670721111c..d39212e737 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.php +++ b/pandora_console/godmode/reporting/visual_console_builder.php @@ -635,15 +635,20 @@ switch ($activeTab) { } else { if (is_metaconsole() === true) { $agents_ids = []; + $servers_ids = []; foreach ($id_agents as $id_agent_id) { $server_and_agent = explode('|', $id_agent_id); $agents_ids[] = $server_and_agent[1]; + $servers_ids[] = $server_and_agent[0]; } $rows = db_get_all_rows_filter( 'tmetaconsole_agent', - ['id_tagente' => $agents_ids] + [ + 'id_tagente' => $agents_ids, + 'id_tmetaconsole_setup' => $servers_ids, + ] ); $agents = []; From 1e0c62732a81f7ce6a33e95d76dd55d71af11691 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 5 Jun 2023 13:39:04 +0200 Subject: [PATCH 2/2] #11444 fixed bug in metacosole visual when added modules in differents node --- pandora_console/godmode/reporting/visual_console_builder.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/reporting/visual_console_builder.php b/pandora_console/godmode/reporting/visual_console_builder.php index d39212e737..a898ff017a 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.php +++ b/pandora_console/godmode/reporting/visual_console_builder.php @@ -693,7 +693,9 @@ switch ($activeTab) { foreach ($modules_serial as $data_serialized) { $data = explode('|', $data_serialized); - $id_modules[] = $data[0]; + if ($id_server == $data[2]) { + $id_modules[] = $data[0]; + } } } } else {