Skip to content

Commit

Permalink
Add: Added an option to ignore the pagination for alert reports.
Browse files Browse the repository at this point in the history
The option Pagination was added to the "Compose Content for Scan
Report" dialog for alerts. The default of this option is ignore,
so that all results are included in the report regardless of the
number of rows specified in the filter selected in the dialog.
  • Loading branch information
jhelmold committed Aug 17, 2023
1 parent 1bd6a88 commit dcfa024
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -12031,6 +12031,7 @@ generate_alert_filter_get (alert_t alert, const get_data_t *base_get_data,
get_data_t **alert_filter_get,
filter_t *filter_return)
{
char *ignore_pagination;
char *filt_id;
filter_t filter;

Expand Down Expand Up @@ -12070,6 +12071,14 @@ generate_alert_filter_get (alert_t alert, const get_data_t *base_get_data,
else
(*alert_filter_get) = NULL;

ignore_pagination = alert_data (alert, "method",
"composer_ignore_pagination");
if (ignore_pagination)
{
(*alert_filter_get)->ignore_pagination = atoi (ignore_pagination);
g_free (ignore_pagination);
}

/* Adjust filter for report composer.
*
* As a first step towards a full composer we have two fields stored
Expand Down

0 comments on commit dcfa024

Please sign in to comment.