From 74f9c57adfa2577cfcaff9ef1f92ee42a3d35451 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 Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- 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 d9e5e569e7..b26bededd2 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.39.5