LP1904036 Checkin never capture deleted copies for holds
authorBill Erickson <berickxx@gmail.com>
Thu, 19 Aug 2021 16:03:13 +0000 (12:03 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 24 Sep 2021 14:07:58 +0000 (10:07 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index 40fe4b0..d20f2a3 100644 (file)
@@ -2671,6 +2671,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;