mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Add defulat docx template if nothing is selected [SCI-11300]
This commit is contained in:
parent
50240647cf
commit
956813c66c
1 changed files with 1 additions and 1 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue