From 91ef095a217c177a5982e4c5b943001b648e57d7 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 8 Jan 2014 15:45:14 +0000 Subject: [PATCH] 2014-01-08 Miguel de Dios * include/functions_gis.php: fixed the agent name label. Fixes: #2401 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9296 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_gis.php | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d9e0b602c4..fe37c380f6 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2014-01-08 Miguel de Dios + + * include/functions_gis.php: fixed the agent name label. + + Fixes: #2401 + 2014-01-08 Miguel de Dios * include/functions_gis.php: fixed with a dirty hack the bug about diff --git a/pandora_console/include/functions_gis.php b/pandora_console/include/functions_gis.php index e2d15b444f..83a42ac211 100644 --- a/pandora_console/include/functions_gis.php +++ b/pandora_console/include/functions_gis.php @@ -966,6 +966,7 @@ function gis_get_agent_map($agent_id, $heigth, $width, $show_history = false, $c $agent_name = agents_get_name($agent_id); + $clean_agent_name = $agent_name; //Avoid the agents with characters that fails the div. $agent_name = md5($agent_name); @@ -1028,7 +1029,7 @@ function gis_get_agent_map($agent_id, $heigth, $width, $show_history = false, $c gis_add_agent_point("layer_for_agent_" . $agent_name, - $agent_name, $agentPositionLatitude, $agentPositionLongitude, + $clean_agent_name, $agentPositionLatitude, $agentPositionLongitude, $agent_icon, $agent_icon_width, $agent_icon_height, $agent_id, $status, 'point_agent_info');