mirror of
https://github.com/anteo/redmine_custom_workflows.git
synced 2026-01-26 00:04:20 +00:00
Fixed error in Mailer#custom_email occuring when :template_params are not passed in headers
This commit is contained in:
parent
a73e9770cc
commit
b9de089279
@ -14,7 +14,7 @@ module RedmineCustomWorkflows
|
|||||||
text_body = headers.delete :text_body
|
text_body = headers.delete :text_body
|
||||||
html_body = headers.delete :html_body
|
html_body = headers.delete :html_body
|
||||||
template_name = headers.delete :template_name
|
template_name = headers.delete :template_name
|
||||||
template_params = headers.delete :template_params || {}
|
template_params = headers.delete(:template_params) || {}
|
||||||
if text_body || html_body
|
if text_body || html_body
|
||||||
mail headers do |format|
|
mail headers do |format|
|
||||||
format.text { render :text => text_body } if text_body
|
format.text { render :text => text_body } if text_body
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user