mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-03 18:18:26 -04:00
fix minor bug where subject is missing
This commit is contained in:
@@ -189,7 +189,8 @@ def preview_template_by_id_and_service_id(service_id, template_id):
|
|||||||
},
|
},
|
||||||
status_code=400,
|
status_code=400,
|
||||||
)
|
)
|
||||||
|
# Only emails have subjects, SMS do not
|
||||||
|
if hasattr(template_object, "subject"):
|
||||||
data["subject"] = template_object.subject
|
data["subject"] = template_object.subject
|
||||||
data["content"] = template_object.content_with_placeholders_filled_in
|
data["content"] = template_object.content_with_placeholders_filled_in
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user