From 16c7d17329a620aee597737729770afe1461c2fd Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 16 May 2017 17:17:11 +0100 Subject: [PATCH] Unfill current placeholder if revisiting page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we don’t do this then you can’t see where in the composed message the value for your placeholder will appear. --- app/main/views/send.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main/views/send.py b/app/main/views/send.py index 17c72821b..5f1274dab 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -240,6 +240,7 @@ def send_test_step(service_id, template_id, step_index): ) template.values = get_normalised_send_test_values_from_session() + template.values[current_placeholder] = None return render_template( 'views/send-test.html',