From d28562c60f1e36f5336a5b2899ee22eb1a8b6977 Mon Sep 17 00:00:00 2001 From: Barton Chittenden Date: Tue, 16 Aug 2016 20:27:16 +0000 Subject: [PATCH] Bug 14504: (QA followup) Fix error causing item not to be deleted Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall --- misc/cronjobs/delete_items.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/cronjobs/delete_items.pl b/misc/cronjobs/delete_items.pl index 0e9e8d184b..88a6bc0a59 100755 --- a/misc/cronjobs/delete_items.pl +++ b/misc/cronjobs/delete_items.pl @@ -57,9 +57,9 @@ $GLOBAL->{sth}->{target_items}->execute(); DELITEM: while ( my $item = $GLOBAL->{sth}->{target_items}->fetchrow_hashref() ) { - my $status = C4::Items::ItemSafeToDelete( $item->{itemnumber}, $item->{biblionumber} ); + my $status = C4::Items::ItemSafeToDelete( $item->{biblionumber}, $item->{itemnumber} ); if( $status eq '1' ) { - C4::Items::DelItemCheck( $item->{itemnumber}, $item->{biblionumber} ); + C4::Items::DelItemCheck( $item->{biblionumber}, $item->{itemnumber} ); verbose "Deleting '$item->{itemnumber}'"; } else { verbose "Item '$item->{itemnumber}' not deletd: $status"; -- 2.39.5