allow both CHECKIN and CHECKOUT alerts to fire during renewal
authorGalen Charlton <gmc@esilibrary.com>
Thu, 17 Dec 2015 23:13:52 +0000 (18:13 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 27 Mar 2017 20:13:12 +0000 (16:13 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index 2acedfc..da564eb 100644 (file)
@@ -667,8 +667,8 @@ sub filter_user_copy_alerts {
         foreach my $a (@$alerts) {
             # filter on event type
             if (defined $a->alert_type) {
-                next if ($a->alert_type->event eq 'CHECKIN' && !$self->is_checkin);
-                next if ($a->alert_type->event eq 'CHECKOUT' && !$self->is_checkout);
+                next if ($a->alert_type->event eq 'CHECKIN' && !$self->is_checkin && !$self->is_renewal);
+                next if ($a->alert_type->event eq 'CHECKOUT' && !$self->is_checkout && !$self->is_renewal);
                 next if (defined $a->alert_type->in_renew && $U->is_true($a->alert_type->in_renew) && !$self->is_renewal);
             }