Fixed problems with agent name in visual consoles. Gitlab #257

This commit is contained in:
m-lopez-f 2017-02-17 15:39:28 +01:00
parent 699942eef5
commit e3c3fafa43
1 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,8 @@ function visual_map_print_item($mode = "read", $layoutData,
}
$agentname = agents_get_name(agents_get_module_id ($id_module));
$label = str_replace($agentname,ui_print_truncate_text($agentname, 'agent_small', false, true, false, '…', false),$label);
$label = str_replace(ui_print_truncate_text($agentname,
'agent_small', false, true, false, '…', false), $agentname, $label);
$text = '<span id="text_' . $id . '" class="text">' . $label .'</span>';
if($height == 0){