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)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 3 Nov 2017 20:02:27 +0000 (16:02 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index aba5512..c98b2f6 100644 (file)
@@ -679,7 +679,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