From 06c8f4972137b457eda2f498b86015398a23dc8b Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 16 Oct 2025 13:12:00 +0000 Subject: [PATCH] Bug 39807: Fix active tab in home-search.inc To test: 1. Make or find a staff member with staff access and list_borrowers permission. 2. Visit the intranet mainpage and notice the 'Search catalog' label but there is no search box. 3. Click 'Search catalog', the search bar now appears 4. Add the 'edit_borrowers' permission 5. Revisit the intranet mainpage and notice both 'Search patrons' and 'Search catalog' links 6. Click on 'Search catalog', now you see both search bars stacked up. 7. APPLY PATCH 8. Try all the steps again and make sure the search bars are working properly for the limited permission user. 9. Try logging in as a superlibrarian and making sure everything still works. --- koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc index 1cc37661580..17bca09e882 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc @@ -40,7 +40,7 @@ [% END %] [% END %] [% IF ( CAN_user_borrowers_edit_borrowers ) %] - [% WRAPPER tab_item tabname= "patron_search" bt_active= search_active_tab %] + [% WRAPPER tab_item tabname= "patron_search" bt_active= patrons_active_tab %] Search patrons [% END %] [% END %] -- 2.39.5