Fix monitoring alert detail filter for defautl actions

This commit is contained in:
Calvo 2021-11-29 11:07:11 +01:00
parent 1bbcf965a8
commit c8fcd511bf
1 changed files with 1 additions and 0 deletions

View File

@ -2183,6 +2183,7 @@ function get_group_alerts(
// WHEN SELECT ALL TAGS TO FILTER ALERTS
if ($action_filter) {
$filter .= ' AND (talert_template_modules.id IN (SELECT id_alert_template_module FROM talert_template_module_actions where id_alert_action = '.$action_filter.'))';
$filter .= ' OR talert_template_modules.id IN (SELECT talert_templates.id FROM talert_templates where talert_templates.id_alert_action = '.$action_filter.')';
}
if (is_array($options)) {