Bugzilla – Attachment 134640 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.06 KB, created by
Martin Renvoize
on 2022-05-05 14:01:17 UTC
(
hide
)
Description:
Bug 30467: Don't send the delete request for each item
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2022-05-05 14:01:17 UTC
Size:
1.06 KB
patch
obsolete
>From a7a00fa99896c9c7d866dfbb6bfee24295709cfe 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. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > 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
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