From a4903946ca3fcba97f61465ed00793787df5b8df Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 1 Apr 2026 12:23:12 +0000 Subject: [PATCH] Bug 42238: Fix loading 'holds' tab when navigating with hash I don't know what caused this to stop working. Possibly a change in the markup due to a bootstrap upgrade? Test plan: Before applying patch: 1) Place any hold for Henry, link to help: /cgi-bin/koha/reserve/request.pl?biblionumber=76&findborrower=23529000035676 2) Open a new tab and visit the Patron details page directly on the 'Holds' tab: /cgi-bin/koha/members/moremember.pl?borrowernumber=19#holds_panel 3) Notice it activates the correct tab, but doesn't load the table. 4) Open a new tab again, this time visit the Patron 'Check out' page directly on the 'Holds' tab: /cgi-bin/koha/circ/circulation.pl?borrowernumber=19#holds_panel 5) Notice the same behavior (tab activates, no table is loaded). 6) Apply patch. Repeat test plan. Confirm table loads on both occasions. Signed-off-by: Owen Leonard Signed-off-by: Andrew Fuerste Henry Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/js/holds.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js index 5a26ab57cc..6ae9ab1072 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -139,7 +139,7 @@ $(document).ready(function () { }); // If the holds tab is preselected on load, we need to load the table - if ($("#holds-tab").parent().hasClass("active")) { + if ($("#holds-tab").hasClass("active")) { load_holds_table(); }