Skip to content

Commit

Permalink
Merge pull request #2062 from greenbone/GEA-124_ignore_pagination
Browse files Browse the repository at this point in the history
Add: Added an option to ignore the pagination for alert reports.
  • Loading branch information
timopollmeier authored Aug 18, 2023
2 parents 1bd6a88 + dcfa024 commit 27bd71a
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 27bd71a

Please sign in to comment.