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 <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2022-04-06 14:11:03 +02:00 committed by Fridolin Somers
parent 97e70e726b
commit 1c7fd5a588

View file

@ -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?