Merge pull request #3339 from okriuchykhin/ok_SCI_5676

Fix report generation with default template [SCI-5676]
This commit is contained in:
Alex Kriuchykhin 2021-05-20 15:57:38 +02:00 committed by GitHub
commit 4b7aaceb66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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?