more log fixes
authorChris Sharp <csharp@georgialibraries.org>
Mon, 30 Jan 2023 19:20:24 +0000 (14:20 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 30 Jan 2023 19:20:24 +0000 (14:20 -0500)
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index 8f43474..dc9e394 100644 (file)
@@ -688,8 +688,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 && !$self->is_renewal);
-                next if ($a->alert_type->event eq 'CHECKOUT' && !$self->is_checkout && !$self->is_renewal);
+                next if (defined $a->alert_type->event && $a->alert_type->event eq 'CHECKIN' && !$self->is_checkin && !$self->is_renewal);
+                next if (defined $a->alert_type->event && $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);
                 next if (defined $a->alert_type->in_renew && !$U->is_true($a->alert_type->in_renew) && $self->is_renewal);
             }