From cc96502448bd99939059d59aed5caf65ff3af671 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 6 Apr 2022 14:11:03 +0200 Subject: [PATCH] Bug 30467: Don't send the delete request for each item We are sending the request when all the items have been deleted. --- Koha/BackgroundJob/BatchDeleteItem.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/BackgroundJob/BatchDeleteItem.pm b/Koha/BackgroundJob/BatchDeleteItem.pm index da6039dd9ea..49ec850a338 100644 --- a/Koha/BackgroundJob/BatchDeleteItem.pm +++ b/Koha/BackgroundJob/BatchDeleteItem.pm @@ -108,7 +108,7 @@ sub process { my $item = Koha::Items->find($record_id) || next; - my $return = $item->safe_delete; + my $return = $item->safe_delete({ skip_record_index => 1 }); unless ( $return ) { # FIXME Do we need to rollback the whole transaction if a deletion failed? -- 2.25.1