diff --git a/pandora_console/godmode/reporting/visual_console_builder.wizard.php b/pandora_console/godmode/reporting/visual_console_builder.wizard.php index 0a2fcc94f4..ba88c295df 100644 --- a/pandora_console/godmode/reporting/visual_console_builder.wizard.php +++ b/pandora_console/godmode/reporting/visual_console_builder.wizard.php @@ -183,7 +183,7 @@ if (defined('METACONSOLE')) { $table->rowstyle["all_2"] = 'display: none;'; $table->data["all_2"][0] = __('Servers'); $table->data["all_2"][1] = html_meta_print_select_servers(false, - false, 'servers', '', '', '', 0, true); + false, 'servers', '', 'metaconsole_init();', '', 0, true); } @@ -210,8 +210,12 @@ $table->data["all_one_item_per_agent"][1] .= html_print_input_hidden( $table->rowstyle["all_4"] = 'display: none;'; $table->data["all_4"][0] = __('Agents'); -$table->data["all_4"][1] = html_print_select( - agents_get_group_agents(0, false, "none", false, true), + +$agents_list = array(); +if (!defined('METACONSOLE')) + $agents_list = agents_get_group_agents(0, false, "none", false, true); + +$table->data["all_4"][1] = html_print_select($agents_list, 'id_agents[]', 0, false, '', '', true, true); $table->data["all_4"][2] = ' ' . __('Modules') . ''; @@ -272,7 +276,7 @@ else { onsubmit="if (! confirm(\''.__('Are you sure to add many elements\nin visual map?').'\')) return false; else return check_fields();">'; } -if(defined("METACONSOLE")){ +if (defined("METACONSOLE")) { echo "