Bug 36215: Remove limit on fetching bookings
authorNick Clemens <nick@bywatersolutions.com>
Wed, 6 Mar 2024 17:59:10 +0000 (17:59 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 12 Mar 2024 16:47:36 +0000 (17:47 +0100)
commit1201a739676d37f805e886a6ac70c16b37eede14
tree8b936f5fd248ecc845d6a2ce7692be7831b232d7
parent13cb1a78ef090c701d8ba977aba4bb1dafd716fb
Bug 36215: Remove limit on fetching bookings

This removes the paging from the bookings request so we take into
account all bookings.

We may want to replace this with date bounded paging in the future, but
lets not try to optimise until we need to.

To test:
 1 - Find a record detail page in Koha staff interface
 2 - Click on a barcode to go to items tab
 3 - Edit 'bookable' to 'yes'
 4 - Return to details page
 5 - Place 5 bookings on a record
 6 - Set system preference RESTDefaultPageSize  2
 7 - Click the 'Bookings' tab on the record details
 8 - Confirm onyl 2 bookings shown in calendar view
 9 - Apply patch, reload
10 - All bookings now show in calendar

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt
koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js