From 8469a7b8ee2d222801e4cf2dc65c6882c7a4ccc2 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 d9e5e569e75..b26bededd20 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 %] @@ -67,11 +66,7 @@ [% QUEUED_MESSAGE.subject | html %] - [% IF QUEUED_MESSAGE.content_type.search('html') %] - [% ELSE %] - - [% END %] [% IF ( QUEUED_MESSAGE.message_transport_type == 'email' ) %]email -- 2.45.0