2014-01-08 Miguel de Dios <miguel.dedios@artica.es>

* 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
This commit is contained in:
mdtrooper 2014-01-08 15:45:14 +00:00
parent c57fc72220
commit 91ef095a21
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2014-01-08 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: fixed the agent name label.
Fixes: #2401
2014-01-08 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: fixed with a dirty hack the bug about

View File

@ -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');