Add defulat docx template if nothing is selected [SCI-11300]

This commit is contained in:
Andrej 2024-11-19 12:52:12 +01:00
parent 50240647cf
commit 956813c66c

View file

@ -144,7 +144,7 @@ class ReportsController < ApplicationController
def edit def edit
@edit = true @edit = true
@active_template = @report.settings[:template] @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? @report.settings = Report::DEFAULT_SETTINGS if @report.settings.blank?
@project_contents = { @project_contents = {