2011-05-18 Vanessa Gil <vanessa.gil@artica.es>

* include/functions_agents.php: Fixed filter Group in Alert Detail.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4364 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
vgilc 2011-05-18 09:40:21 +00:00
parent 194478e887
commit 26481b61da
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-05-18 Vanessa Gil <vanessa.gil@artica.es>
* include/functions_agents.php: Fixed filter Group in Alert Detail.
2011-05-17 Juan Manuel Ramon <juanmanuel.ramon@artica.es> 2011-05-17 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/graphs/fgraph.php * include/graphs/fgraph.php

View File

@ -151,7 +151,8 @@ function agents_get_alerts_simple ($id_agent = false, $filter = '', $options = f
$filter .= db_format_array_where_clause_sql ($options); $filter .= db_format_array_where_clause_sql ($options);
} }
if (($id_agent === false) && ($idGroup !== false)) { if (($id_agent !== false) && ($idGroup !== false)) {
if ($idGroup != 0) { //All group if ($idGroup != 0) { //All group
$subQuery = 'SELECT id_agente_modulo $subQuery = 'SELECT id_agente_modulo
FROM tagente_modulo FROM tagente_modulo