[Koha-bugs] [Bug 36100] Regression in bookings edit

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 22 15:18:25 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36100

Julian Maurice <julian.maurice at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |julian.maurice at biblibre.com

--- Comment #8 from Julian Maurice <julian.maurice at biblibre.com> ---
Editing a booking works if I just remove booking_id from the PUT JSON payload
(booking ID is in the URL already so it's not needed in the body):

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 946be01e3cd..74cc90e49a6 100644
--- a/koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js
+++ b/koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js
@@ -504,3 +504,2 @@ $("#placeBookingForm").on('submit', function(e) {
             'data': JSON.stringify({
-                "booking_id": booking_id,
                 "start_date": start_date,

Is there anything else that is fixed by removing readOnly ? Does removing
booking_id from the body like I did cause issues ?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list