Merge pull request #8050 from andrej-scinote/aj_SCI_11300

Add default docx template if nothing is selected [SCI-11300]
This commit is contained in:
andrej-scinote 2024-11-19 13:07:32 +01:00 committed by GitHub
commit 1a4ea87bdd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -144,7 +144,7 @@ class ReportsController < ApplicationController
def edit
@edit = true
@active_template = @report.settings[:template]
@active_docx_template = @report.settings[:docx_template]
@active_docx_template = @report.settings[:docx_template].presence || 'scinote_template'
@report.settings = Report::DEFAULT_SETTINGS if @report.settings.blank?
@project_contents = {