Commit 4a307a69 authored by Siddharth Asthana's avatar Siddharth Asthana

Pass formats explicitly when rendering .md.erb

Changelog: other
EE: true
parent c6617e3b
...@@ -46,7 +46,11 @@ module VulnerabilitiesHelper ...@@ -46,7 +46,11 @@ module VulnerabilitiesHelper
decorated_vulnerability = vulnerability.present decorated_vulnerability = vulnerability.present
summary = _('Investigate vulnerability: %{title}') % { title: decorated_vulnerability.title } summary = _('Investigate vulnerability: %{title}') % { title: decorated_vulnerability.title }
description = ApplicationController.render(template: 'vulnerabilities/jira_issue_description.md.erb', description = ApplicationController.render(template: {
partial: 'vulnerabilities/jira_issue_description',
formats: :md,
handlers: :erb
},
locals: { vulnerability: decorated_vulnerability }) locals: { vulnerability: decorated_vulnerability })
vulnerability.project.jira_integration.new_issue_url_with_predefined_fields(summary, description) vulnerability.project.jira_integration.new_issue_url_with_predefined_fields(summary, description)
......
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