Commit 2da743f6 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'issue_342492_6' into 'master'

Pass formats explicitly when rendering .md.erb

See merge request gitlab-org/gitlab!73419
parents 15bc88cf 8f3fa4b0
...@@ -97,14 +97,15 @@ module EE ...@@ -97,14 +97,15 @@ module EE
def render_vulnerability_description def render_vulnerability_description
render_to_string( render_to_string(
template: 'vulnerabilities/issue_description.md.erb', template: 'vulnerabilities/issue_description',
formats: :md,
locals: { vulnerability: vulnerability.present } locals: { vulnerability: vulnerability.present }
) )
end end
def render_vulnerability_link_alert(error_message) def render_vulnerability_link_alert(error_message)
render_to_string( render_to_string(
partial: 'vulnerabilities/unable_to_link_vulnerability.html.haml', partial: 'vulnerabilities/unable_to_link_vulnerability',
locals: { locals: {
vulnerability_link: vulnerability_path(vulnerability), vulnerability_link: vulnerability_path(vulnerability),
error_message: error_message error_message: error_message
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment