From 03c2e382d642dfd6247cef552291c0263327a30b Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 8 Nov 2023 10:43:09 +0000 Subject: [PATCH] Bug 35285: Remove switch in notices.tt We now wrap appropriately for non-html formatted messages as part of the html_content method. This means we can remove the case from members/notices.tt and rely on html_content doing the right thing for notice previews. Signed-off-by: David Nind --- koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt index 660ac5fb03..1b50af399b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt @@ -1,6 +1,5 @@ [% USE raw %] [% USE Asset %] -[% USE String %] [% USE Koha %] [% USE AuthorisedValues %] [% USE Branches %] @@ -66,11 +65,7 @@ [% QUEUED_MESSAGE.subject | html %] - [% IF QUEUED_MESSAGE.content_type.search('html') %] - [% ELSE %] - - [% END %] [% IF ( QUEUED_MESSAGE.message_transport_type == 'email' ) %]email -- 2.30.2