mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 01:58:24 -04:00
Merge pull request #3790 from alphagov/show-from-reply-to
Fix not showing 'From' / 'Reply to' after sending
This commit is contained in:
@@ -95,6 +95,8 @@ def view_notification(service_id, notification_id):
|
||||
page_count=page_count,
|
||||
show_recipient=True,
|
||||
redact_missing_personalisation=True,
|
||||
sms_sender=notification['reply_to_text'],
|
||||
email_reply_to=notification['reply_to_text'],
|
||||
)
|
||||
template.values = personalisation
|
||||
if notification['job']:
|
||||
|
||||
@@ -218,6 +218,10 @@ def set_sender(service_id, template_id):
|
||||
return redirect_to_one_off
|
||||
|
||||
sender_details = get_sender_details(service_id, template['template_type'])
|
||||
|
||||
if len(sender_details) == 1:
|
||||
session['sender_id'] = sender_details[0]['id']
|
||||
|
||||
if len(sender_details) <= 1:
|
||||
return redirect_to_one_off
|
||||
|
||||
|
||||
Reference in New Issue
Block a user