From 4a8d570c8d8ecd9134122fc72815ef449f179548 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 25 Aug 2025 16:13:02 +0000 Subject: [PATCH] Bug 40602: Broken HTML showing in Alert 'subscriptions' tab This patch adds handling of the "no-html" flag to patron-title.inc. The OPAC alert subscriptions page passes the "no-html" flag but the include file wasn't written to include it. To test, apply the patch and log in to the OPAC as a user who has a title (salutation). - Add a serial subscription and set a notification template - Go to the OPAC and subscribe to the email notification for this subscription - Go to the patron account > Alert subscriptions tab - Verify that the last column shows an "Unsubscribe from email alerts" button. - There should be no errant HTML. Sponsored-by: Athens County Public Libraries Signed-off-by: noah --- koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc index 76efdbf859..9a67aea33f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/patron-title.inc @@ -2,7 +2,11 @@ [% patron.surname | html %][% IF patron.othernames %]([% patron.othernames | html %])[%- END -%] [%- ELSE -%] [%- IF patron.title -%] - [% patron.title | html %] + [%- IF no_html -%] + [% patron.title | html %] + [%- ELSE -%] + + [%- END -%] [%- END -%] [% patron.preferred_name | html %] [% patron.middle_name | html %] -- 2.43.0