mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 06:33:12 -04:00
Fix exception on email job page
For email jobs, the template needed to look up the service to work out the email_from and from_name. `service` used to be a variable passed through to the view. Now every veiw gets `current_service` instead. This is a quick fix to make things work.
This commit is contained in:
@@ -25,8 +25,8 @@
|
|||||||
{{ email_message(
|
{{ email_message(
|
||||||
template.subject,
|
template.subject,
|
||||||
template.formatted_as_markup,
|
template.formatted_as_markup,
|
||||||
from_address='{}@notifications.service.gov.uk'.format(service.email_from),
|
from_address='{}@notifications.service.gov.uk'.format(current_service.email_from),
|
||||||
from_name=service.name
|
from_name=current_service.name
|
||||||
)}}
|
)}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user