mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 17:24:51 +08:00
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:
commit
1a4ea87bdd
1 changed files with 1 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue