2012-01-20 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* include/functions_api.php: Modified get_all_agents function.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5398 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2012-01-23 07:52:43 +00:00
parent 2009c60047
commit 0ddeab6b4c
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-01-20 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_api.php: Modified get_all_agents function.
2012-01-20 Ramon Novoa <rnovoa@artica.es>
* include/functions_netflow.php,

View File

@ -785,7 +785,10 @@ function get_all_agents($thrash1, $thrash2, $other, $thrash3) {
}
// Filter by policy
if ($other['data'][4] != ""){
$where .= sprintf(" AND id_agente IN (select id_agent from tpolicy_agents where id_policy = %d)", $other['data'][4]);
$filter_by_policy = enterprise_hook('policies_get_filter_by_agent', array($other['data'][4]));
if ($filter_by_policy !== ENTERPRISE_NOT_HOOK){
$where .= $filter_by_policy;
}
}
// Filter by state