From a7a00fa99896c9c7d866dfbb6bfee24295709cfe 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. Signed-off-by: Martin Renvoize --- 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 da6039dd9e..49ec850a33 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.20.1