From 355c68ca7939e7e99d344a03bfdca5654b676f65 Mon Sep 17 00:00:00 2001 From: jsatoh Date: Tue, 13 Sep 2011 00:19:03 +0000 Subject: [PATCH] 2011-09-13 Junichi Satoh * include/functions_api.php: Fixed module name filtering in 'get events' does not work correctly. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4942 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_api.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index a90682121f..86b602457a 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-09-13 Junichi Satoh + + * include/functions_api.php: Fixed module name filtering in + 'get events' does not work correctly. + 2011-09-12 Miguel de Dios * include/functions_api.php, include/api.php: added the code for to diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 38a3622425..e345c0513d 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -841,11 +841,11 @@ function otherParameter2Filter($other, $array = false) { if ($other['data'][3] != '') { $filterModule = array('nombre' => $other['data'][3]); if ($idAgent != null) { - $filter['id_agente'] = $idAgent; + $filterModule['id_agente'] = $idAgent; } $idAgentModulo = db_get_value_filter('id_agente_modulo', 'tagente_modulo', $filterModule); if ($idAgentModulo !== false) { - $filter['id_agentmodule'] = $idAgentModule; + $filter['id_agentmodule'] = $idAgentModulo; } }