mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed that Cascade Protection unexpectedly worked against disabled modules of parent agents.
This commit is contained in:
parent
fb7ab39627
commit
863397ec51
@ -3676,6 +3676,7 @@ sub pandora_inhibit_alerts {
|
||||
my $count = get_db_value ($dbh, 'SELECT COUNT(*) FROM tagente_modulo, talert_template_modules, talert_templates
|
||||
WHERE tagente_modulo.id_agente = ?
|
||||
AND tagente_modulo.id_agente_modulo = talert_template_modules.id_agent_module
|
||||
AND tagente_modulo.disabled = 0
|
||||
AND talert_template_modules.id_alert_template = talert_templates.id
|
||||
AND talert_template_modules.times_fired > 0
|
||||
AND talert_templates.priority = 4', $agent->{'id_parent'});
|
||||
|
Loading…
x
Reference in New Issue
Block a user