From 2ee9958a07984316968291b5287cc7b3a2968d1a Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Fri, 15 Jul 2011 09:49:07 +0000 Subject: [PATCH] 2011-07-15 Juan Manuel Ramon * include/functions_gis.php: Fixed Gis map creation when has agents in a layer. Fixes: #3293392 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4575 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/include/functions_gis.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 79d2e3b15e..a1043b2628 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2011-07-15 Juan Manuel Ramon + + * include/functions_gis.php: Fixed Gis map creation when has agents + in a layer. + + Fixes: #3293392 + 2011-07-15 Vanessa Gil * operation/events/events_list.php: Fixed filter events. diff --git a/pandora_console/include/functions_gis.php b/pandora_console/include/functions_gis.php index 53f636f18c..8b9634ac6c 100644 --- a/pandora_console/include/functions_gis.php +++ b/pandora_console/include/functions_gis.php @@ -730,7 +730,7 @@ function gis_save_map($map_name, $map_initial_longitude, $map_initial_latitude, db_process_sql_insert('tgis_map_layer_has_tagente', array( 'tgis_map_layer_id_tmap_layer' => $idLayer, - 'tagente_id_agente' => agents_get_agent_id($agent_name) + 'tagente_id_agente' => agents_get_agent_id(safe_input($agent_name)) ) ); }