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:
parent
4b6325dfce
commit
7a125d7cc8
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue