From: Mike Rylander Date: Sat, 6 Jun 2020 17:48:30 +0000 (-0400) Subject: Let the reactor see all undelivered appointments to avoid duplicates X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fab15bfe839fd0188c4cf7a262d450e0b9929cf3;p=working%2FEvergreen.git Let the reactor see all undelivered appointments to avoid duplicates Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/CurbsideSlot.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/CurbsideSlot.pm index e23f33d95b..bb07c3f307 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/CurbsideSlot.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/CurbsideSlot.pm @@ -25,14 +25,10 @@ sub handler { my $h = $$env{target}; # see if there's an undelivered appointment in the future - my ($slot) = $e->search_action_curbside({ + my $slot = $e->search_action_curbside({ patron => $h->usr, org => $h->pickup_lib, - delivered => undef, - '-or' => [ - { slot => { '>=' => 'now' } }, - { slot => undef } - ] + delivered => undef }); if (!@$slot) {