Fix back link on check notifications page

It wasn’t using the same logic around placeholders and address lines as
the rest of the send one off steps.
This commit is contained in:
Chris Hill-Scott
2020-04-15 15:42:25 +01:00
parent f773a6ed71
commit 157ab82fea
2 changed files with 55 additions and 1 deletions

View File

@@ -1022,7 +1022,9 @@ def _check_notification(service_id, template_id, exception=None):
page_count=get_page_count_for_letter(db_template),
)
back_link = get_back_link(service_id, template, len(fields_to_fill_in(template)))
placeholders = fields_to_fill_in(template)
back_link = get_back_link(service_id, template, len(placeholders), placeholders)
if (
(