From ff46aaa6cc37dc81bfc5249c4baac378f574d286 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Thu, 4 Aug 2016 17:02:21 +0100 Subject: [PATCH] send user contact info to deskpro correctly previously we were erroneously setting our own reply email rather than using the user's provided one :dizzy_face: --- app/main/views/feedback.py | 3 ++- app/main/views/service_settings.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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',