Skip to content

Commit

Permalink
Fix: Fix the fallback filter for alerts with no compose filter
Browse files Browse the repository at this point in the history
An empty filter was used when the alert had no filter causing an
incomplete report when the alert was triggered manually.
  • Loading branch information
a-h-abdelsalam committed Mar 14, 2024
1 parent 04a2765 commit ae77cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -12155,7 +12155,7 @@ generate_alert_filter_get (alert_t alert, const get_data_t *base_get_data,
else
{
(*alert_filter_get)->filt_id = NULL;
(*alert_filter_get)->filter = g_strdup("");
(*alert_filter_get)->filter = base_get_data->filter;
}

/* Adjust filter for report composer.
Expand Down

0 comments on commit ae77cd2

Please sign in to comment.