From 69d1a37bbaef1703a4ed52be53d4972e699b7a13 Mon Sep 17 00:00:00 2001 From: Lucas Gass <lucas@bywatersolutions.com> Date: Tue, 18 Apr 2023 18:17:37 +0000 Subject: [PATCH] Bug 33551: Fix HTML title on patron restrictions page To test: 1. Enable PatronRestrictionTypes 2. Go to Administration > Patron restrictions 3. Click 'Edit' next to MANUAL --> The title of the page (in the browser tab) contains <span> </span> 4. Apply patch 5. Look at the title of the page when viewing, editing, and deleteing restrictions to make sure they are correct. --- .../prog/en/modules/admin/restrictions.tt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt index c81eb99801..ad4d2fe082 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt @@ -4,8 +4,18 @@ [% PROCESS 'restriction-types.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -<title>[% IF op == 'add_form' %][% IF ( restriction ) %]Modify restriction '[% PROCESS restriction_type_description restriction_type=restriction %]' › [% ELSE %]New restriction › [% END %][% END %] -[% IF op == 'delete_confirm' %]Confirm deletion of restriction '[% PROCESS restriction_type_description restriction_type=restriction %]' › [% END %]Patron restrictions › Administration › Koha +<title> + [% IF op == 'add_form' %] + [% IF ( restriction ) %] + Modify restriction + [% ELSE %] + New restriction + [% END %] › + [% END %] + [% IF op == 'delete_confirm' %] + Confirm deletion of restriction › + [% END %] + Patron restrictions › Administration › Koha </title> [% INCLUDE 'doc-head-close.inc' %] </head> -- 2.30.2