From 5dbf0eabbd476875350a5263cf9ca3fcde79f7f3 Mon Sep 17 00:00:00 2001 From: enriquecd Date: Tue, 23 Jan 2018 19:33:48 +0100 Subject: [PATCH] Fix wizard, no show cluster agents in wizard, and preview - #1748 --- .../reporting/cluster_builder.main.php | 135 +++++++++--------- .../godmode/reporting/cluster_builder.php | 2 +- .../godmode/reporting/cluster_view.php | 44 +++++- 3 files changed, 115 insertions(+), 66 deletions(-) diff --git a/pandora_console/godmode/reporting/cluster_builder.main.php b/pandora_console/godmode/reporting/cluster_builder.main.php index eda460ac88..ea7a8210e6 100644 --- a/pandora_console/godmode/reporting/cluster_builder.main.php +++ b/pandora_console/godmode/reporting/cluster_builder.main.php @@ -237,8 +237,15 @@ elseif($step == 2){ echo ""; $option_style = array(); - $cluster_agents_in = agents_get_cluster_agents_alias($id_cluster); - $cluster_agents_all = agents_get_group_agents(0, false, ''); + $cluster_agents_in = agents_get_cluster_agents_alias($id_cluster); + // $cluster_agents_all = agents_get_group_agents(0, false, ''); + + $cluster_agents_all_pre = db_get_all_rows_sql('select * from tagente where id_os != 21'); + + foreach ($cluster_agents_all_pre as $key => $value) { + $cluster_agents_all[$value['id_agente']] = $value['alias']; + } + $cluster_agents_out = array(); $cluster_agents_out = array_diff_key($template_agents_all, $template_agents_in); @@ -525,53 +532,53 @@ elseif ($step == 6) {