From 4b5781c869bb5b1c578196622d6645357037390c Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Mon, 30 Jan 2023 14:20:24 -0500 Subject: [PATCH] more log fixes --- Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 8f43474e3a..dc9e394101 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm @@ -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); } -- 2.11.0