From 927967d9240f3d73423f1c08a7fa5d86da1bcc47 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 29 Sep 2023 14:23:25 +0100 Subject: [PATCH] Bug 29002: Properly reset item in form Signed-off-by: Martin Renvoize Signed-off-by: Janet McGowan Signed-off-by: Caroline Cyr La Rose Signed-off-by: Laurence Rault Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js b/koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js index bd52dac985..d86fffc529 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js +++ b/koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js @@ -487,7 +487,7 @@ $("#placeBookingForm").on('submit', function(e) { $('#placeBookingModal').on('hidden.bs.modal', function (e) { $('#booking_patron_id').val(null).trigger('change'); - $('#booking_item_id').val(null).trigger('change'); + $('#booking_item_id').val(0).trigger('change'); $("#period").get(0)._flatpickr.clear(); $('#booking_start_date').val(''); $('#booking_end_date').val(''); -- 2.39.5