Bugzilla – Attachment 169005 Details for
Bug 34440
Add warm-up and cool-down periods to bookings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34440: Update for change to /circulation_rules
Bug-34440-Update-for-change-to-circulationrules.patch (text/plain), 1.89 KB, created by
Martin Renvoize (ashimema)
on 2024-07-15 15:38:08 UTC
(
hide
)
Description:
Bug 34440: Update for change to /circulation_rules
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-07-15 15:38:08 UTC
Size:
1.89 KB
patch
obsolete
>From 31e6095cd352e0f05572feff8a02d526d1317d9f Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 21 Jun 2024 12:25:24 +0100 >Subject: [PATCH] Bug 34440: Update for change to /circulation_rules > >We updated the preceeding bug that introducing the /circulation_rules >endpoint such that it always returns an array. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../intranet-tmpl/prog/js/modals/place_booking.js | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) > >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 0d975d64a16..323009d5905 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js >@@ -140,14 +140,15 @@ $("#placeBookingModal").on("show.bs.modal", function (e) { > type: "GET", > dataType: "json", > data: { >- category: booking_patron.category_id, >- itemtype: booking_itemtype_id, >- branchcode: pickup_library_id, >- rules: [ 'bookings_lead_period', 'bookings_trail_period' ] >+ patron_category_id: booking_patron.category_id, >+ item_type_id: booking_itemtype_id, >+ library_id: pickup_library_id, >+ rules: 'bookings_lead_period,bookings_trail_period' > }, > success: function (response) { >- leadDays = response.bookings_lead_period; >- trailDays = response.bookings_trail_period; >+ let rules = response[0] >+ leadDays = rules.bookings_lead_period; >+ trailDays = rules.bookings_trail_period; > }, > error: function (xhr, status, error) { > console.log("Circulation rules fetch failed: ", error); >-- >2.45.2
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 34440
:
167948
|
167949
|
167950
|
167951
|
167952
|
167953
|
167954
|
167955
|
168941
|
168942
|
168943
|
168944
|
168945
|
168946
|
168947
|
168948
|
168949
|
168998
|
168999
|
169000
|
169001
|
169002
|
169003
|
169004
|
169005
|
169006
|
169007
|
169571
|
169572
|
169573
|
169574
|
169575
|
169576
|
169577
|
169578
|
169579
|
169580
|
169581
|
169587
|
169588
|
170032
|
170033
|
170034
|
170035
|
170036
|
170037
|
170038
|
170039
|
170040
|
170041
|
170042
|
170046
|
170047
|
170048
|
170049
|
170050
|
170051
|
170052
|
170053
|
170054
|
170055
|
170056
|
170589
|
170590
|
170591
|
170592
|
170593
|
170594
|
170595
|
170596
|
170597
|
170598
|
170599
|
170600
|
170603
|
170610
|
170951