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