Body of notification without placeholder should have been present.

This commit is contained in:
Adam Shimali
2016-06-23 10:20:49 +01:00
parent ed5bdb7be8
commit f65b86cfc9
2 changed files with 4 additions and 0 deletions

View File

@@ -272,6 +272,8 @@ class NotificationStatusSchema(BaseSchema):
if in_data['template']['template_type'] == 'email':
in_data['subject'] = template.replaced_subject
in_data.pop('personalisation', None)
else:
in_data['body'] = in_data['template']['content']
in_data['template'].pop('content', None)
in_data['template'].pop('subject', None)
return in_data