From a06107f2359772ef896a0edb372fda9a49c75f22 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Thu, 26 Jan 2012 09:58:31 +0000 Subject: [PATCH] 2012-01-26 Sergio Martin * include/functions_api.php: Improved the get all agents API function to retrieve more data as address, description, operating system and url address git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5434 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_api.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 0fc3cb077b..5cee5f067a 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2012-01-26 Sergio Martin + + * include/functions_api.php: Improved the get all agents + API function to retrieve more data as address, description, + operating system and url address + 2012-01-25 Juan Manuel Ramon * include/functions_reporting.php: Fixed Sla graph when it has diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 1df886811e..da4cd80b56 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -807,7 +807,7 @@ function get_all_agents($thrash1, $thrash2, $other, $thrash3) { // Initialization of array $result_agents = array(); // Filter by state - $sql = "SELECT id_agente, nombre FROM tagente WHERE disabled = 0 " . $where; + $sql = "SELECT id_agente, nombre, direccion, comentarios, tconfig_os.name, url_address FROM tagente, tconfig_os WHERE tagente.id_os = tconfig_os.id_os AND disabled = 0 " . $where; $all_agents = db_get_all_rows_sql($sql);