Skip to content

Commit

Permalink
cancel hold before deleting copy
Browse files Browse the repository at this point in the history
  • Loading branch information
eby committed Aug 15, 2019
1 parent 3895771 commit 929dcd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iNCIPit.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,8 @@ sub item_cancelled {
$barcode .= $faidValue;
my $copy = copy_from_barcode($barcode);
fail( $copy->{textcode} . " $barcode" ) unless ( blessed $copy);
my $r = delete_copy($copy);
my $r = cancel_hold($barcode);
$r = delete_copy($copy);
} else {
# we are the item agency
unless ( $conf->{behavior}->{no_item_agency_holds} =~ m/^y/i ) {
Expand Down

0 comments on commit 929dcd6

Please sign in to comment.