ent 9183 agent alerts filter

This commit is contained in:
edu.corral 2022-09-02 11:26:24 +02:00
parent d1b22e3f7e
commit 03504fe7c5

View File

@ -195,7 +195,7 @@ $simple_alerts = [];
$total = 0;
$where = '';
if ($searchFlag) {
if ($status_alert === 'fired') {
$where .= ' AND talert_template_modules.times_fired > 0';
}
@ -245,7 +245,6 @@ if ($searchFlag) {
if ($standby != -1 && $standby != '') {
$where .= ' AND talert_template_modules.standby = '.$standby;
}
}
$id_agents = array_keys($agents);
if (empty($id_agents) === true) {