From b7701daa5995f90576b8978c04d0345b0f64802d Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Wed, 11 Feb 2026 22:43:59 +0000 Subject: [PATCH] Bug 41825: Holds cannot be cancelled after a checkout on the patron checkout page To test: 1- Find two items, A and B, from two different bibliographic records. 2- Place a hold on item A for a patron. 3- Go to the patron Checkout page and check out item B. 4- Click on the Holds tab. 5- Click on the Delete icon to cancel the hold and confirm the cancellation. 6- Check the Holds tab. ---> The hold is not deleted. 7- Check out another item. 8- In the Holds tab, select the hold and click Cancel selected. ---> Nothing happens. 9- Apply the patch and refresh the page (Ctrl+F5) 10- Repeat step 7, 4, 5, 6 ---> The hold is now deleted. 11- Repeat step 2, 7, 8 ---> The hold can now be deleted --- koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js index 264ad54f716..aa072843361 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js @@ -1036,11 +1036,7 @@ function toggleBtnIcon(element, start, replacement) { */ function holds_table_patron_page() { var url = window.location.href; - if ( - url.indexOf("/circ/circulation.pl?borrowernumber=") !== -1 || - url.indexOf("/circ/circulation.pl?findborrower=") !== -1 - ) - return "circ"; + if (url.indexOf("/circ/circulation.pl") !== -1) return "circ"; else if (url.indexOf("/members/moremember.pl?borrowernumber=") !== -1) return "borrower"; -- 2.34.1