diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 46cc4b611c..e10c8c00dc 100755 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -122,8 +122,6 @@ function visual_map_print_item($mode = "read", $layoutData, $left = $left * $proportion['proportion_width']; } - $agentname = agents_get_name(agents_get_module_id ($id_module)); - $label = str_replace(ui_print_truncate_text($agentname, 'agent_small', false, true, false, '…', false), $agentname, $label); $text = '' . $label .''; if($height == 0){ @@ -1670,7 +1668,7 @@ function visual_map_process_wizard_add ($id_agents, $image, $id_layout, $range, break; } - $label = agents_get_name($id_agent); + $label = agents_get_alias($id_agent); $value_label = '(_VALUE_)'; if ($type === SIMPLE_VALUE) { @@ -1747,12 +1745,12 @@ function visual_map_process_wizard_add_modules ($id_modules, $image, } } - $id_agent = modules_get_agentmodule_agent ($id_module); + $id_agent = modules_get_agentmodule_agent($id_module); switch ($label_type) { case 'agent_module': default: - $agent_label = agents_get_name ($id_agent); + $agent_label = agents_get_alias($id_agent); $module_label = modules_get_agentmodule_name($id_module); $label = '

'.$agent_label . " - " . $module_label.'

'; break; @@ -1761,7 +1759,7 @@ function visual_map_process_wizard_add_modules ($id_modules, $image, $label = '

'.$module_label.'

'; break; case 'agent': - $agent_label = agents_get_name ($id_agent); + $agent_label = agents_get_alias($id_agent); $label = '

'.$agent_label.'

'; break; case 'none': @@ -1953,9 +1951,7 @@ function visual_map_process_wizard_add_agents ($id_agents, $image, switch ($label_type) { case 'agent': - $agent_label = - agents_get_name($id_agent); - $label = $agent_label; + $label = agents_get_alias($id_agent); break; case 'none': $label = ''; @@ -2482,12 +2478,6 @@ function visual_map_print_visual_map ($id_layout, $show_links = true, foreach ($layout_datas as $layout_data) { - //change agent name by alias - if(!empty($layout_data['label'])){ - $alias = db_get_value ("alias","tagente","id_agente",$layout_data['id_agent']); - $aux = explode('-',$layout_data['label']); - $layout_data['label'] = '

'. $alias .' -' . $aux[1]; - } //Check the items are from disabled or pending delete modules if ($layout_data['id_agente_modulo'] != 0 && (($layout_data['type'] != LABEL)