Bugzilla – Attachment 129454 Details for
Bug 29483
AllowRenewalIfOtherItemsAvailable has poor performance for records with many items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29843: Use in tools/cleanborrowers.pl
Bug-29843-Use-in-toolscleanborrowerspl.patch (text/plain), 1.54 KB, created by
Andrew Fuerste-Henry
on 2022-01-13 20:58:20 UTC
(
hide
)
Description:
Bug 29843: Use in tools/cleanborrowers.pl
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2022-01-13 20:58:20 UTC
Size:
1.54 KB
patch
obsolete
>From b6bdcae855d70d071bae6efbd6712414adf0800b Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 10 Jan 2022 12:14:11 -0300 >Subject: [PATCH] Bug 29843: Use in tools/cleanborrowers.pl > >This patch makes tools/cleanborrowers.pl use the new methods. > >Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> > >https://bugs.koha-community.org/show_bug.cgi?id=29483 >--- > tools/cleanborrowers.pl | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/tools/cleanborrowers.pl b/tools/cleanborrowers.pl >index add68a23bc..96a5da17e3 100755 >--- a/tools/cleanborrowers.pl >+++ b/tools/cleanborrowers.pl >@@ -38,6 +38,7 @@ use C4::Auth qw( get_template_and_user ); > use C4::Output qw( output_html_with_http_headers ); > use C4::Members qw( GetBorrowersToExpunge ); > use Koha::DateUtils qw( dt_from_string output_pref ); >+use Koha::Old::Checkouts; > use Koha::Patron::Categories; > use Koha::Patrons; > use Koha::List::Patron qw( GetPatronLists ); >@@ -155,7 +156,11 @@ elsif ( $step == 3 ) { > # Anonymising all members > if ($do_anonym) { > #FIXME: anonymisation errors are not handled >- my $rows = Koha::Patrons->search_patrons_to_anonymise( { before => $last_issue_date } )->anonymise_issue_history( { before => $last_issue_date } ); >+ my $rows = Koha::Old::Checkouts >+ ->filter_by_anonymizable >+ ->filter_by_last_update({ to => $last_issue_date }) >+ ->anonymize; >+ > $template->param( > do_anonym => $rows, > ); >-- >2.30.2
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 29483
:
127656
|
127819
|
127820
|
127883
|
127884
|
127885
|
129450
|
129451
|
129452
|
129453
|
129454
|
129499
|
129500
|
129501
|
132094
|
132095
|
132096
|
132113
|
133389
|
133390
|
133391
|
134723