Skip to content

Commit

Permalink
Merge pull request #3220 from psiinon/reports/job-title
Browse files Browse the repository at this point in the history
Reports: use default report title and description in new report jobs
  • Loading branch information
thc202 authored Oct 7, 2021
2 parents 241d250 + 30f26cf commit 6938a82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addOns/reports/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this add-on will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased
### Added
- Default report title and description to new report jobs.

### Fixed
- In risk-confidence-html template, guard against scanJobResultData being null.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ public ReportJob() {
data = new Data(this, this.parameters);
this.getParameters().setTemplate(ReportParam.DEFAULT_TEMPLATE);
this.getParameters().setReportDir(System.getProperty("user.home"));
this.getParameters().setReportTitle(this.getExtReport().getReportParam().getTitle());
this.getParameters()
.setReportDescription(this.getExtReport().getReportParam().getDescription());
}

@Override
Expand Down

0 comments on commit 6938a82

Please sign in to comment.