mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 14:58:24 -04:00
handle if user doesn't provide name/email
also clean up usage of DESKPRO_PERSON_EMAIL and put it in the conf rather than env
This commit is contained in:
@@ -108,9 +108,7 @@ def service_request_to_go_live(service_id):
|
||||
'department_id': current_app.config.get('DESKPRO_DEPT_ID'),
|
||||
'agent_team_id': current_app.config.get('DESKPRO_ASSIGNED_AGENT_TEAM_ID'),
|
||||
'subject': 'Request to go live',
|
||||
'message': "From {} <{}> on behalf of {} ({})\n\nUsage estimate\n---\n\n{}".format(
|
||||
current_user.name,
|
||||
current_user.email_address,
|
||||
'message': "On behalf of {} ({})\n\nUsage estimate\n---\n\n{}".format(
|
||||
current_service['name'],
|
||||
url_for('main.service_dashboard', service_id=current_service['id'], _external=True),
|
||||
form.usage.data
|
||||
|
||||
Reference in New Issue
Block a user