From 9d0bcfeb8ba7aeaa83c705b2a6f3209f81e2b589 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelsalam Date: Mon, 5 Feb 2024 10:49:12 +0100 Subject: [PATCH] Exclude audit reports from scan tags filter when removing resources --- src/manage_sql.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/manage_sql.c b/src/manage_sql.c index 026b83cb2..b1be36bb3 100644 --- a/src/manage_sql.c +++ b/src/manage_sql.c @@ -57097,6 +57097,10 @@ tag_remove_resources_filter (tag_t tag, const char *type, const char *filter) "usage_type", g_strdup ("audit")); } + else if (strcasecmp (type, "report") == 0) + { + get_data_set_extra (&resources_get, "usage_type", g_strdup ("scan")); + } gchar *columns;