mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Revert "Merge pull request #1334 from alphagov/fix-missing-recipient-on-notification-page"
This reverts commit6f3bcff32f, reversing changes made tof8a3132d8b.
This commit is contained in:
@@ -57,7 +57,7 @@ def view_notification(service_id, notification_id):
|
||||
),
|
||||
show_recipient=True,
|
||||
)
|
||||
template.values = get_all_personalisation_from_notification(notification)
|
||||
template.values = notification['personalisation']
|
||||
if notification['job']:
|
||||
job = job_api_client.get_job(service_id, notification['job']['id'])['data']
|
||||
else:
|
||||
@@ -106,18 +106,3 @@ def get_single_notification_partials(notification):
|
||||
notification=notification
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
def get_all_personalisation_from_notification(notification):
|
||||
if notification['template']['template_type'] == 'email':
|
||||
return dict(
|
||||
email_address=notification['to'],
|
||||
**notification['personalisation']
|
||||
)
|
||||
if notification['template']['template_type'] == 'sms':
|
||||
return dict(
|
||||
phone_number=notification['to'],
|
||||
**notification['personalisation']
|
||||
)
|
||||
if notification['template']['template_type'] == 'letter':
|
||||
return notification['personalisation']
|
||||
|
||||
Reference in New Issue
Block a user