From 294bb0f3d1172500ae72f00ca39814c0812b0ada Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 24 Jul 2025 14:08:15 +0000 Subject: [PATCH] Bug 40488: Fix breadcrumb link to public lists when editing a list in the staff interface This patch revises the breadcrumbs in the staff interface lists template so that the correct link is shown when editing or viewing a public list. To test, apply the patch and go to Lists in the staff interface. - Create a public list - Go to the list of public lists - Click to view your newly created public list - The breadcrumb menu should show Lists -> Public lists -> Contents of [list name] - The link to public lists should work correctly. - Perform the same check when editing your public list. - Check the viewing and editing of a private list to make sure no breadcrumb errors were introduced. Sponsored-by: Athens County Public Libraries --- .../prog/en/modules/virtualshelves/shelves.tt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index 05052171c43..cf5f68b3e19 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -101,14 +101,8 @@ [% END %] [% END %] [% ELSIF shelf AND shelf.is_public %] - [% IF op == 'view' %] - [% WRAPPER breadcrumb_item %] - Public lists - [% END %] - [% ELSE %] - [% WRAPPER breadcrumb_item bc_active= 1 %] - Public lists - [% END %] + [% WRAPPER breadcrumb_item %] + Public lists [% END %] [% END %] -- 2.39.5