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.

Signed-off-by: Kristi Krueger <KKRUEGER@cuyahogalibrary.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Lucas Gass 2025-02-27 22:34:37 +00:00 committed by Katrin Fischer
parent 4b6325dfce
commit 7a125d7cc8
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 0 deletions

View File

@ -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,