From 632146366aa0dbc3625238fc7196b715469c255f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 31 Jan 2024 15:54:01 +0100 Subject: [PATCH] Bug 34478: op =~ ^cud- in pl/pm - Manual revert changes to recreateIssueStatistics.pl Signed-off-by: Jonathan Druart --- misc/recreateIssueStatistics.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/recreateIssueStatistics.pl b/misc/recreateIssueStatistics.pl index c9222418b2..8032019440 100755 --- a/misc/recreateIssueStatistics.pl +++ b/misc/recreateIssueStatistics.pl @@ -96,7 +96,7 @@ if ($issues == 1) { # This is the not-so accurate part : # We assume that there are missing renewals, based on the last renewal date # Maybe should this be deactivated by default ? - my $ctnquery = "SELECT count(*) as cnt FROM statistics WHERE borrowernumber = ? AND itemnumber = ? AND DATE(datetime) = ? AND type = 'cud-renew'"; + my $ctnquery = "SELECT count(*) as cnt FROM statistics WHERE borrowernumber = ? AND itemnumber = ? AND DATE(datetime) = ? AND type = 'renew'"; my $substh = $dbh->prepare($ctnquery); $substh->execute($hashref->{'borrowernumber'}, $hashref->{'itemnumber'}, $hashref->{'lastreneweddate'}); @@ -115,7 +115,7 @@ if ($issues == 1) { $hashref->{'lastreneweddate'}, $hashref->{'branchcode'}, 0, - 'cud-renew', + 'renew', '', $hashref->{'itemnumber'}, $itemtype, -- 2.39.5