]> git.koha-community.org Git - koha.git/commit
Bug 36215: Remove limit on fetching bookings
authorNick Clemens <nick@bywatersolutions.com>
Wed, 6 Mar 2024 17:59:10 +0000 (17:59 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 13 Mar 2024 08:04:04 +0000 (09:04 +0100)
commit9ec9fc3d78143e99313291f1cd31b554aeec20d6
treea24357fe0d3849a292a8f3f26eb5174a7ac745c5
parentfdd7731a46901a9c340953e57cec1c53a8fb1f40
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>
(cherry picked from commit 1201a739676d37f805e886a6ac70c16b37eede14)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt
koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js