2011-08-29 Javier Lanz <javier.lanz@artica.es>
* operation/agentes/ver_agente.php: Fixed a bug filling modules combo Fixes: #3397520 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4842 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
61194cd73d
commit
e6f387f5d0
|
@ -1,3 +1,9 @@
|
||||||
|
2011-08-29 Javier Lanz <javier.lanz@artica.es>
|
||||||
|
|
||||||
|
* operation/agentes/ver_agente.php: Fixed a bug filling modules combo
|
||||||
|
|
||||||
|
Fixes: #3397520
|
||||||
|
|
||||||
2011-08-29 Sergio Martin <sergio.martin@artica.es>
|
2011-08-29 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* images/attachment_del.png: Added new icon to policy queue
|
* images/attachment_del.png: Added new icon to policy queue
|
||||||
|
|
|
@ -111,12 +111,14 @@ if (is_ajax ()) {
|
||||||
FROM tagente_modulo t1, talert_template_modules t2
|
FROM tagente_modulo t1, talert_template_modules t2
|
||||||
WHERE t2.id_agent_module = t1.id_agente_modulo
|
WHERE t2.id_agent_module = t1.id_agente_modulo
|
||||||
AND delete_pending = 0
|
AND delete_pending = 0
|
||||||
|
AND id_alert_template = '.$id_template.'
|
||||||
AND id_agente IN (' . implode(',', $idAgents) . ') AND (
|
AND id_agente IN (' . implode(',', $idAgents) . ') AND (
|
||||||
SELECT count(nombre)
|
SELECT count(nombre)
|
||||||
FROM tagente_modulo t3, talert_template_modules t4
|
FROM tagente_modulo t3, talert_template_modules t4
|
||||||
WHERE t4.id_agent_module = t3.id_agente_modulo
|
WHERE t4.id_agent_module = t3.id_agente_modulo
|
||||||
AND delete_pending = 0 AND t1.nombre = t3.nombre
|
AND delete_pending = 0 AND t1.nombre = t3.nombre
|
||||||
AND id_agente IN (' . implode(',', $idAgents) . ')) = (' . count($idAgents) . ')');
|
AND id_agente IN (' . implode(',', $idAgents) . ')
|
||||||
|
AND id_alert_template = '.$id_template.') = (' . count($idAgents) . ')');
|
||||||
|
|
||||||
if ($nameModules == false) {
|
if ($nameModules == false) {
|
||||||
$nameModules = array();
|
$nameModules = array();
|
||||||
|
|
Loading…
Reference in New Issue