From a08ae93297faa4b9ad81e15ea2a4bed8638f1540 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 21 Jun 2012 14:00:51 -0400 Subject: [PATCH] hold CAP/FILL blocks : repair event test in patron permit Repairs in oversight in the patron permit event testing code that caused the test to miss events when the checkout was not there to fulfill a hold. Signed-off-by: Bill Erickson Signed-off-by: Jason Stephenson --- Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm index 7a30879972..8139155089 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm @@ -1104,6 +1104,8 @@ sub run_patron_permit_scripts { if ($self->is_noncat) { # no_item result is OK during noncat checkout @trimmed_results = grep { ($_->{fail_part} || '') ne 'no_item' } @$results; + } else { + @trimmed_results = @$results; } if ($self->checkout_is_for_hold) { -- 2.11.0