View | Details | Raw Unified | Return to bug 34440
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js (-7 / +7 lines)
Lines 140-153 $("#placeBookingModal").on("show.bs.modal", function (e) { Link Here
140
            type: "GET",
140
            type: "GET",
141
            dataType: "json",
141
            dataType: "json",
142
            data: {
142
            data: {
143
                category: booking_patron.category_id,
143
                patron_category_id: booking_patron.category_id,
144
                itemtype: booking_itemtype_id,
144
                item_type_id: booking_itemtype_id,
145
                branchcode: pickup_library_id,
145
                library_id: pickup_library_id,
146
                rules: [ 'bookings_lead_period', 'bookings_trail_period' ]
146
                rules: 'bookings_lead_period,bookings_trail_period'
147
            },
147
            },
148
            success: function (response) {
148
            success: function (response) {
149
                leadDays = response.bookings_lead_period;
149
                let rules = response[0]
150
                trailDays = response.bookings_trail_period;
150
                leadDays = rules.bookings_lead_period;
151
                trailDays = rules.bookings_trail_period;
151
            },
152
            },
152
            error: function (xhr, status, error) {
153
            error: function (xhr, status, error) {
153
                console.log("Circulation rules fetch failed: ", error);
154
                console.log("Circulation rules fetch failed: ", error);
154
- 

Return to bug 34440