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

Julian Maurice <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #8 from Julian Maurice <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to