correctly test whether the alert_type fires during renewal
authorGalen Charlton <gmc@esilibrary.com>
Thu, 17 Dec 2015 22:59:41 +0000 (17:59 -0500)
committerMike Rylander <mrylander@gmail.com>
Mon, 31 Jul 2017 14:12:51 +0000 (10:12 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index 4a134f7..d8de49c 100644 (file)
@@ -669,7 +669,7 @@ sub filter_user_copy_alerts {
             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 (defined $a->alert_type->in_renew && $U->is_true($a->in_renew) && !$self->is_renewal);
+                next if (defined $a->alert_type->in_renew && $U->is_true($a->alert_type->in_renew) && !$self->is_renewal);
             }
 
             # filter on suppression