Skip to content

Commit dcfa024

Browse files
committed
Add: Added an option to ignore the pagination for alert reports.
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.
1 parent 1bd6a88 commit dcfa024

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/manage_sql.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12031,6 +12031,7 @@ generate_alert_filter_get (alert_t alert, const get_data_t *base_get_data,
1203112031
get_data_t **alert_filter_get,
1203212032
filter_t *filter_return)
1203312033
{
12034+
char *ignore_pagination;
1203412035
char *filt_id;
1203512036
filter_t filter;
1203612037

@@ -12070,6 +12071,14 @@ generate_alert_filter_get (alert_t alert, const get_data_t *base_get_data,
1207012071
else
1207112072
(*alert_filter_get) = NULL;
1207212073

12074+
ignore_pagination = alert_data (alert, "method",
12075+
"composer_ignore_pagination");
12076+
if (ignore_pagination)
12077+
{
12078+
(*alert_filter_get)->ignore_pagination = atoi (ignore_pagination);
12079+
g_free (ignore_pagination);
12080+
}
12081+
1207312082
/* Adjust filter for report composer.
1207412083
*
1207512084
* As a first step towards a full composer we have two fields stored

0 commit comments

Comments
 (0)