From 950fe89b03d552b1f1f8c0c7abb80fe9e1ccc5b0 Mon Sep 17 00:00:00 2001 From: Codencode Date: Thu, 12 Feb 2026 13:27:31 +0100 Subject: [PATCH 1/2] contactform: hide subject select when only one contact --- .../views/templates/widget/contactform.tpl | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/modules/contactform/views/templates/widget/contactform.tpl b/modules/contactform/views/templates/widget/contactform.tpl index 1273c0d4..f882ea3e 100644 --- a/modules/contactform/views/templates/widget/contactform.tpl +++ b/modules/contactform/views/templates/widget/contactform.tpl @@ -43,16 +43,21 @@ -
- -
- + {if $contact.contacts|count === 1} + {assign var=firstContact value=current($contact.contacts)} + + {else} +
+ +
+ +
-
+ {/if}
From 5ba3b06b91e13b7ee1c9a896cb0c2e73622e3016 Mon Sep 17 00:00:00 2001 From: Codencode Date: Thu, 12 Feb 2026 16:28:57 +0100 Subject: [PATCH 2/2] Fix: Escape contact name in select option --- modules/contactform/views/templates/widget/contactform.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/contactform/views/templates/widget/contactform.tpl b/modules/contactform/views/templates/widget/contactform.tpl index f882ea3e..0e04336e 100644 --- a/modules/contactform/views/templates/widget/contactform.tpl +++ b/modules/contactform/views/templates/widget/contactform.tpl @@ -52,7 +52,7 @@