From 4c577a9cb09f1bbc4a71d0d0b523fbbcbfdee85a Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 2 Mar 2010 10:19:09 +0000 Subject: [PATCH] 2010-03-01 Miguel de Dios * operation/gis_maps/ajax.php: fix the query to extract the GIS data for agent, in any moment in the past I dirty the query, but now it's clean, and now run fine the agent movement. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2441 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/operation/gis_maps/ajax.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index bd95b69f8c..83244931e7 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-03-01 Miguel de Dios + + * operation/gis_maps/ajax.php: fix the query to extract the GIS data for + agent, in any moment in the past I dirty the query, but now it's clean, and + now run fine the agent movement. + 2010-03-01 Pablo de la ConcepciĆ³n * include/javascript/openlayers.pandora.js: Modified js_printMap to support diff --git a/pandora_console/operation/gis_maps/ajax.php b/pandora_console/operation/gis_maps/ajax.php index 2f6768bc87..23b7349086 100644 --- a/pandora_console/operation/gis_maps/ajax.php +++ b/pandora_console/operation/gis_maps/ajax.php @@ -72,7 +72,7 @@ switch ($opt) { $idAgentsWithGIS[] = $id_features; } - $agentsGISStatus = get_db_all_rows_sql('SELECT t1.nombre, id_parent, t1.id_parent1.id_agente AS tagente_id_agente, + $agentsGISStatus = get_db_all_rows_sql('SELECT t1.nombre, id_parent, t1.id_agente AS tagente_id_agente, IFNULL(t2.stored_longitude, ' . $defaultCoords['default_longitude'] . ') AS stored_longitude, IFNULL(t2.stored_latitude, ' . $defaultCoords['default_latitude'] . ') AS stored_latitude FROM tagente AS t1