2011-09-13 Junichi Satoh <junichi@rworks.jp>

* 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
This commit is contained in:
jsatoh 2011-09-13 00:19:03 +00:00
parent b721200582
commit 355c68ca79
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-09-13 Junichi Satoh <junichi@rworks.jp>
* include/functions_api.php: Fixed module name filtering in
'get events' does not work correctly.
2011-09-12 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php, include/api.php: added the code for to

View File

@ -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;
}
}