Fix report template loading [SCI-9663] (#6651)

This commit is contained in:
ajugo 2023-11-16 09:05:21 +01:00 committed by GitHub
parent cd5531cf73
commit a765ab009d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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",