Merge pull request #481 from alphagov/show-replaced-subject-if-in-CSV

Show subject line with placeholders replaced
This commit is contained in:
Chris Hill-Scott
2016-04-21 09:39:38 +01:00

View File

@@ -46,7 +46,7 @@
{% if 'email' == template.template_type %}
{{ email_message(
template.formatted_subject_as_markup,
template.formatted_subject_as_markup if errors else template.replaced_subject,
template.formatted_as_markup if errors else template.replaced,
from_address='{}@notifications.service.gov.uk'.format(current_service.email_from),
from_name=current_service.name