Bugzilla – Attachment 132992 Details for
Bug 30467
BatchDeleteItem task does not deal with indexation correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30467: Don't send the delete request for each item
Bug-30467-Dont-send-the-delete-request-for-each-it.patch (text/plain), 1.00 KB, created by
Jonathan Druart
on 2022-04-06 12:14:59 UTC
(
hide
)
Description:
Bug 30467: Don't send the delete request for each item
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-04-06 12:14:59 UTC
Size:
1.00 KB
patch
obsolete
>From cc96502448bd99939059d59aed5caf65ff3af671 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30467
:
132992
|
134398
|
134640
|
134672
|
134675
|
134741
|
134744