From 126d96f5b9542cf195cca3c04d2ca906b703b3cd Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 22 Feb 2010 18:09:56 +0000 Subject: [PATCH] 2010-02-22 Miguel de Dios * operation/gis_maps/ajax.php: fix bug that pass wrong var to search status in function "get_agent_status". git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2399 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/operation/gis_maps/ajax.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 6cb27c67c8..8eb7c603ba 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-02-22 Miguel de Dios + + * operation/gis_maps/ajax.php: fix bug that pass wrong var to search + status in function "get_agent_status". + 2010-02-22 Miguel de Dios * include/functions_alerts.php: fix when try delete only the alerts from diff --git a/pandora_console/operation/gis_maps/ajax.php b/pandora_console/operation/gis_maps/ajax.php index 1461de3860..8ccb836aef 100644 --- a/pandora_console/operation/gis_maps/ajax.php +++ b/pandora_console/operation/gis_maps/ajax.php @@ -98,7 +98,7 @@ switch ($opt) { $agents[$row['tagente_id_agente']] = array( 'icon_path' => get_agent_icon_map($row['tagente_id_agente'], true), 'name' => get_agent_name($row['tagente_id_agente']), - 'status' => get_agent_status($idAgent), + 'status' => get_agent_status($row['tagente_id_agente']), 'stored_longitude' => $row['stored_longitude'], 'stored_latitude' => $row['stored_latitude'] );