Skip to content

Commit

Permalink
Change default report type to all
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abdelsalam authored and timopollmeier committed Feb 14, 2025
1 parent c6d4d46 commit 93a020f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/gmp_report_formats.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ parse_report_format_entity (entity_t report_format,
*report_type = child_or_null (report_format, "report_type");

if (*report_type == NULL)
*report_type = "scan";
*report_type = "all";
else if (strcmp (*report_type, "scan") && strcmp (*report_type, "audit")
&& strcmp (*report_type, "all"))
{
g_warning ("report_type for report format %s is invalid.",
*report_format_id);
*report_type = "scan";
*report_type = "all";
}

*files = make_array ();
Expand Down
4 changes: 2 additions & 2 deletions src/manage_migrators.c
Original file line number Diff line number Diff line change
Expand Up @@ -3241,10 +3241,10 @@ migrate_256_to_257 ()
// Add new columns

sql ("ALTER TABLE report_formats ADD COLUMN"
" report_type text DEFAULT 'scan';");
" report_type text DEFAULT 'all';");

sql ("ALTER TABLE report_formats_trash ADD COLUMN"
" report_type text DEFAULT 'scan';");
" report_type text DEFAULT 'all';");

/* Set the database version to 257. */

Expand Down

0 comments on commit 93a020f

Please sign in to comment.