From e28b1d64268e3c4e0f93fb2281974fcd2d378a94 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 19 Aug 2021 12:03:13 -0400 Subject: [PATCH] LP1904036 Checkin never capture deleted copies for holds Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm | 3 +++ 1 file changed, 3 insertions(+) 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 0e417c593f..0546e525eb 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm @@ -2670,6 +2670,9 @@ sub do_checkin { OpenILS::Event->new('ASSET_COPY_NOT_FOUND')) unless $self->copy; + # Never capture a deleted copy for a hold. + $self->capture('nocapture') if $U->is_true($self->copy->deleted); + $self->fix_broken_transit_status; # if applicable $self->check_transit_checkin_interval; $self->checkin_retarget; -- 2.11.0