mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 16:54:03 -04:00
Pass original file name when sending contact list
Otherwise the new file doesn’t get a name, which is very confusing.
This commit is contained in:
@@ -520,11 +520,16 @@ def choose_from_contact_list(service_id, template_id):
|
||||
)
|
||||
@user_has_permissions('send_messages')
|
||||
def send_from_contact_list(service_id, template_id, contact_list_id):
|
||||
contact_list = ContactList.from_id(
|
||||
contact_list_id,
|
||||
service_id=current_service.id,
|
||||
)
|
||||
return redirect(url_for(
|
||||
'main.check_messages',
|
||||
service_id=current_service.id,
|
||||
template_id=template_id,
|
||||
upload_id=ContactList.copy_to_uploads(service_id, contact_list_id),
|
||||
upload_id=contact_list.copy_to_uploads(),
|
||||
original_file_name=contact_list.original_file_name,
|
||||
))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user