From fcfba5a0d993cdc359eb398b276507c41ba1e72d Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Thu, 20 May 2021 15:14:25 +0200 Subject: [PATCH] Fix report generation with default template [SCI-5676] --- app/jobs/reports/pdf_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/reports/pdf_job.rb b/app/jobs/reports/pdf_job.rb index 712688e3e..82412425d 100644 --- a/app/jobs/reports/pdf_job.rb +++ b/app/jobs/reports/pdf_job.rb @@ -44,7 +44,7 @@ module Reports if Extends::REPORT_TEMPLATES.key?(report.settings[:template]&.to_sym) report.settings[:template] else - Extends::REPORT_TEMPLATES.keys.first + Extends::REPORT_TEMPLATES.keys.first.to_s end raise StandardError, 'Report template not found!' if template.blank?