From: Bill Erickson <berick@esilibrary.com>
Date: Thu, 21 Jun 2012 18:00:51 +0000 (-0400)
Subject: hold CAP/FILL blocks : repair event test in patron permit
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=169731b8569a378bae748c98514e42bd89954d17;p=evergreen%2Fmasslnc.git

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 <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
---

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) {