Fix report generation with default template [SCI-5676]

This commit is contained in:
Oleksii Kriuchykhin 2021-05-20 15:14:25 +02:00
parent 32682efd92
commit fcfba5a0d9

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?