From 9d204a0f1e8de771d6b5b08a81c7a3995fc80ace Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 6 May 2025 21:44:37 +0000 Subject: [PATCH] Bug 23260: Tidy Koha/Patrons.pm --- Koha/Patrons.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Patrons.pm b/Koha/Patrons.pm index d3f6cfb176d..dcbbdfe5c0c 100644 --- a/Koha/Patrons.pm +++ b/Koha/Patrons.pm @@ -180,7 +180,7 @@ sub anonymize_last_borrowers { return unless C4::Context->preference("AnonymizeLastBorrower"); my $days = C4::Context->preference("AnonymizeLastBorrowerDays") || 0; - my ( $year, $month, $day ) = Today(); + my ( $year, $month, $day ) = Today(); my ( $newyear, $newmonth, $newday ) = Add_Delta_Days( $year, $month, $day, (-1) * $days ); my $older_than_date = dt_from_string( sprintf "%4d-%02d-%02d", $newyear, $newmonth, $newday ); @@ -189,7 +189,7 @@ sub anonymize_last_borrowers { my $dtf = Koha::Database->new->schema->storage->datetime_parser; my $rs = $self->_resultset->search( { - created_on => { '<' => $dtf->format_datetime($older_than_date), }, + created_on => { '<' => $dtf->format_datetime($older_than_date), }, 'items_last_borrowers.borrowernumber' => { 'not' => undef }, # Keep forever ( $anonymous_patron ? ( 'items_last_borrowers.borrowernumber' => { '!=' => $anonymous_patron } ) : () ), }, -- 2.39.5