Merge pull request #2957 from alphagov/missing-template-version

Fix bug with missing template version param
This commit is contained in:
David McDonald
2020-08-17 17:33:29 +01:00
committed by GitHub
2 changed files with 47 additions and 3 deletions

View File

@@ -243,8 +243,7 @@ def preview_letter_template_by_notification_id(service_id, notification_id, file
page = request.args.get('page')
notification = get_notification_by_id(notification_id)
template = dao_get_template_by_id(notification.template_id)
template = dao_get_template_by_id(notification.template_id, notification.template_version)
metadata = {}
if template.is_precompiled_letter: