mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-12 16:14:58 +08:00
Fix report template loading [SCI-9663] (#6651)
This commit is contained in:
parent
cd5531cf73
commit
a765ab009d
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class ReportsController < ApplicationController
|
|||
report = current_team.reports.new(project: @project)
|
||||
end
|
||||
|
||||
if lookup_context.template_exists?("reports/templates/#{template}/edit")
|
||||
if lookup_context.any_templates?("reports/templates/#{template}/edit")
|
||||
render json: {
|
||||
html: render_to_string(
|
||||
template: "reports/templates/#{template}/edit",
|
||||
|
|
Loading…
Add table
Reference in a new issue