From eef929f3f1145994fe6a9858bdfa68d3fcab1636 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 21 Mar 2024 14:13:04 +0000 Subject: [PATCH] Bug 36120: Re-enable 'Any item' selectable Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js b/koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js index 4b81e5f82f..dc6e0b85c1 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js +++ b/koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js @@ -452,6 +452,7 @@ $("#placeBookingModal").on("show.bs.modal", function (e) { // Setup listener for pickup location select2 $("#pickup_library_id").on("select2:select", function (e) { let valid_items = e.params.data.pickup_items; + valid_items.push(0); // Disable items not available at the pickup location $("#booking_item_id > option").each(function () { -- 2.39.5