Skip to content

Commit

Permalink
Merge pull request #2360 from greenbone/GEA-840_Verinice_ISM_report_d…
Browse files Browse the repository at this point in the history
…oes_not_include_reports

Fix: Made Verinice reports include attached reports.
  • Loading branch information
jhelmold authored Feb 4, 2025
2 parents eb1680b + b871cba commit 32ee1a6
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/manage_sql_report_formats.c
Original file line number Diff line number Diff line change
Expand Up @@ -3997,11 +3997,18 @@ apply_report_format (gchar *report_format_id,

rf_dependencies_string
= sql_string ("SELECT value"
" FROM report_format_params"
" WHERE report_format = %llu"
" AND type = %i",
report_format,
REPORT_FORMAT_PARAM_TYPE_REPORT_FORMAT_LIST);
" FROM report_config_params"
" WHERE report_config = %llu AND name = 'Attached report formats'",
report_config);

if (!rf_dependencies_string || !strcmp (rf_dependencies_string, ""))
rf_dependencies_string
= sql_string ("SELECT value"
" FROM report_format_params"
" WHERE report_format = %llu"
" AND type = %i",
report_format,
REPORT_FORMAT_PARAM_TYPE_REPORT_FORMAT_LIST);

if (rf_dependencies_string)
{
Expand Down

0 comments on commit 32ee1a6

Please sign in to comment.