Bugzilla – Attachment 178812 Details for
Bug 39212
Error when attempting to edit a booking
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39212: Explicitly set the contentType to JSON
Bug-39212-Explicitly-set-the-contentType-to-JSON.patch (text/plain), 1.18 KB, created by
Lucas Gass (lukeg)
on 2025-02-27 22:38:00 UTC
(
hide
)
Description:
Bug 39212: Explicitly set the contentType to JSON
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-02-27 22:38:00 UTC
Size:
1.18 KB
patch
obsolete
>From baa755ca73febdcda70154ba00363d76a3c3b155 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 27 Feb 2025 22:34:37 +0000 >Subject: [PATCH] Bug 39212: Explicitly set the contentType to JSON > >To test: >1. Make an item or item type 'Bookable' >2. Place a booking for that item >3. Go the 'Bookings' tab for that item. >4. Edit the booking >5. Submit the edit request and see at the top of the modal "Failure" >6. APPLY PATCH >7. Try editing bookings, now it should work. >--- > 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 8bbb4547e91..3ce9cf0f1de 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js >@@ -1201,6 +1201,7 @@ $("#placeBookingForm").on("submit", function (e) { > let putting = $.ajax({ > method: "PUT", > url: url, >+ contentType: "application/json", > data: JSON.stringify({ > booking_id: booking_id, > start_date: start_date, >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39212
:
178811
|
178812
|
178871
|
178930