diff --git a/app/main/views/feedback.py b/app/main/views/feedback.py index 0c21d88bb..215effc06 100644 --- a/app/main/views/feedback.py +++ b/app/main/views/feedback.py @@ -9,7 +9,8 @@ def feedback(): form = Feedback() if form.validate_on_submit(): data = { - 'person_email': current_app.config.get('DESKPRO_PERSON_EMAIL'), + 'person_email': form.email_address.data, + 'person_name': form.name.data, 'department_id': current_app.config.get('DESKPRO_DEPT_ID'), 'agent_team_id': current_app.config.get('DESKPRO_ASSIGNED_AGENT_TEAM_ID'), 'subject': 'Notify feedback', diff --git a/app/main/views/service_settings.py b/app/main/views/service_settings.py index 40e92787b..833601cc8 100644 --- a/app/main/views/service_settings.py +++ b/app/main/views/service_settings.py @@ -103,7 +103,8 @@ def service_request_to_go_live(service_id): if form.validate_on_submit(): data = { - 'person_email': current_app.config.get('DESKPRO_PERSON_EMAIL'), + 'person_email': current_user.email_address, + 'person_name': current_user.name, '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',