]> git.koha-community.org Git - koha.git/commit
Bug 32891: Fix slot selection in last hour
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 7 Feb 2023 07:48:29 +0000 (08:48 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 21 Feb 2023 13:22:28 +0000 (10:22 -0300)
commitf2f288a8c409ae32fb15e764bfd980d022315ff8
tree8cb77a9fde61eae9622835f7ffc9aa70dc1226f6
parent64e14f90b5c180b561bfe9c07e30f1456ef49a2e
Bug 32891: Fix slot selection in last hour

If the curbside pickup module is configured with slot not on the hour
(minutes=00), the slots in the last (not complete) hour won't be
selectable.

Test plan:
Create the following configuration:
pickup interval: 10
Opening hours: 08:00 to 11:30
Create a pickup and select 11:10 or 11:20
=> Without this patch the pickup is not created and the UI displays "Wrong slot selected"
=> With this patch you are able to create the pickup

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/CurbsidePickupPolicy.pm
t/db_dependent/Koha/CurbsidePickups.t