From 34a5ddaf2cae5db0a38a5920751eefbb73f49175 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 24 Mar 2020 15:54:44 +0000 Subject: [PATCH] Assume email always provided MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There’s no way for a user to submit the form without it now. --- app/main/views/feedback.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/main/views/feedback.py b/app/main/views/feedback.py index 5ed99554b..0f1189579 100644 --- a/app/main/views/feedback.py +++ b/app/main/views/feedback.py @@ -111,10 +111,9 @@ def feedback(ticket_type): else: service_string = '' - feedback_msg = '{}\n{}{}'.format( + feedback_msg = '{}\n{}'.format( form.feedback.data, service_string, - '' if user_email else '{} (no email address supplied)'.format(form.name.data) ) zendesk_client.create_ticket(