From ba17de9c8303ae4b7ecf4ec77046c742cf218c1e Mon Sep 17 00:00:00 2001
From: Todd Dembrey <todd.dembrey@torchbox.com>
Date: Fri, 27 Jul 2018 16:24:42 +0100
Subject: [PATCH] Make sure we dont send the extra fields for Needs more info

---
 .../templates/messages/email/determination.html      | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/opentech/apply/activity/templates/messages/email/determination.html b/opentech/apply/activity/templates/messages/email/determination.html
index b22b6e621..b4bee91fe 100644
--- a/opentech/apply/activity/templates/messages/email/determination.html
+++ b/opentech/apply/activity/templates/messages/email/determination.html
@@ -7,10 +7,12 @@
 
 
 {% block post_signature_content %}
-{% for group in submission.determination.detailed_data.values %}
-    {% for question, answer in group.questions %}
-        <h5>{{ question }}</h5>
-        {% if answer %}{{ answer|bleach }}{% else %}-{% endif %}
+{% if submission.determination.submitted %}
+    {% for group in submission.determination.detailed_data.values %}
+        {% for question, answer in group.questions %}
+            <h5>{{ question }}</h5>
+            {% if answer %}{{ answer|bleach }}{% else %}-{% endif %}
+        {% endfor %}
     {% endfor %}
-{% endfor %}
+{% endif %}
 {% endblock %}
-- 
GitLab