From f6b3e1d094bb6f2fb61ef2c86552f14d6a7fc3b3 Mon Sep 17 00:00:00 2001 From: Adam Daley Date: Sat, 30 May 2026 16:09:03 +0100 Subject: [PATCH] Use autocomplete select for test client and show email (#3681) --- .../admin/mod_massmailer_index.html.twig | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/modules/Massmailer/templates/admin/mod_massmailer_index.html.twig b/src/modules/Massmailer/templates/admin/mod_massmailer_index.html.twig index 99107e84d..1f7f0dd6c 100644 --- a/src/modules/Massmailer/templates/admin/mod_massmailer_index.html.twig +++ b/src/modules/Massmailer/templates/admin/mod_massmailer_index.html.twig @@ -150,19 +150,17 @@
- {% if not params.test_client_id %} - - {% else %} - {% set test_client = admin.client_get({ 'id': params.test_client_id }) %} - - - {% endif %} -
{{ 'Test emails will be sent to:'|trans }} {{ admin.massmailer_get_test_client }}
+ {% set test_client_email = admin.massmailer_get_test_client %} + +
{{ 'Test emails will be sent to:'|trans }} {{ test_client_email|trans }}
{% endblock %}