Unfill current placeholder if revisiting page

If we don’t do this then you can’t see where in the composed message
the value for your placeholder will appear.
This commit is contained in:
Chris Hill-Scott
2017-05-16 17:17:11 +01:00
parent 7169a7fbf8
commit 16c7d17329

View File

@@ -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',