mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
Merge pull request #2957 from alphagov/missing-template-version
Fix bug with missing template version param
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user