From 28c4b908ce9b6ff0e5c560b8a4bab8ab34a81cf3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 29 Dec 2016 02:16:21 +0000 Subject: [PATCH] Bug 17196: Fix delete_records_via_leader.pl Signed-off-by: Nick Clemens Signed-off-by: Marcel de Rooy Signed-off-by: Kyle M Hall --- misc/cronjobs/delete_records_via_leader.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/cronjobs/delete_records_via_leader.pl b/misc/cronjobs/delete_records_via_leader.pl index 0b19d38350..baba5dc38b 100755 --- a/misc/cronjobs/delete_records_via_leader.pl +++ b/misc/cronjobs/delete_records_via_leader.pl @@ -36,6 +36,7 @@ use Getopt::Long; use C4::Biblio; use C4::Items; use Koha::Database; +use Koha::Biblioitems; use Koha::Biblio::Metadatas; my $delete_items; @@ -85,7 +86,7 @@ foreach my $m (@metadatas) { if ($delete_items) { my $deleted_count = 0; - my $biblioitem = Koha::Biblioitem->find( $biblionumber ); + my $biblioitem = Koha::Biblioitems->find( $biblionumber ); foreach my $item ( $biblioitem->items() ) { my $itemnumber = $item->itemnumber(); -- 2.39.5