mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Merge pull request #3339 from okriuchykhin/ok_SCI_5676
Fix report generation with default template [SCI-5676]
This commit is contained in:
commit
4b7aaceb66
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue