Changed the agent name by its alias

This commit is contained in:
Alejandro Gallardo Escobar 2017-02-20 17:28:38 +01:00
parent 3715b9da5d
commit 354377a56a
2 changed files with 2 additions and 2 deletions

View File

@ -559,7 +559,7 @@ if ($id_agente) {
}
$agent = db_get_row ('tagente', 'id_agente', $id_agente);
ui_print_page_header ($agent["nombre"],
"images/setup.png", false, $help_header , true, $onheader,$agent["alias"] . ' ' . $tab_description);
"images/setup.png", false, $help_header , true, $onheader, false, '', GENERIC_SIZE_TEXT, $agent["alias"] . ' ' . $tab_description);
}
else {
// Create agent

View File

@ -851,7 +851,7 @@ function networkmap_loadfile($id = 0, $file = '',
case 'agent':
$data['id_agent'] = $ids[$node_id]['id_agent'];
$text = agents_get_name($ids[$node_id]['id_agent']);
$text = agents_get_alias($ids[$node_id]['id_agent']);
$text = io_safe_output($text);
$text = ui_print_truncate_text($text,
'agent_medium', false, true, false,