mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-13 01:41:09 +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)
|
if Extends::REPORT_TEMPLATES.key?(report.settings[:template]&.to_sym)
|
||||||
report.settings[:template]
|
report.settings[:template]
|
||||||
else
|
else
|
||||||
Extends::REPORT_TEMPLATES.keys.first
|
Extends::REPORT_TEMPLATES.keys.first.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
raise StandardError, 'Report template not found!' if template.blank?
|
raise StandardError, 'Report template not found!' if template.blank?
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue