From 4c3e4b8bd718cfe3f7afc37f8e049ea899e4dbdf Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 29 Jun 2026 13:55:06 +0200 Subject: [PATCH] Bug 42396: Adjust 'use' statements Always include the plural version, not the singular one (the plural imports the singular) Signed-off-by: Jonathan Druart Signed-off-by: Laura_Escamilla Signed-off-by: Pedro Amorim --- C4/Circulation.pm | 2 +- Koha/Account.pm | 2 +- Koha/BackgroundJob/PseudonymizeStatistic.pm | 2 +- Koha/ILL/Request.pm | 2 +- Koha/Item.pm | 2 +- Koha/Recalls.pm | 2 +- misc/maintenance/pseudonymize_statistics.pl | 1 - t/db_dependent/Koha/Pseudonymization.t | 1 - t/db_dependent/Koha/Statistic.t | 1 - t/db_dependent/Koha/Statistics.t | 1 - 10 files changed, 6 insertions(+), 10 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 9277d95fa8..0129ba055c 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -122,7 +122,7 @@ use Koha::SearchEngine::Indexer; use Koha::Exceptions::Checkout; use Koha::Plugins; use Koha::Recalls; -use Koha::Statistic; +use Koha::Statistics; use Koha::Library::Hours; use Koha::Library::FloatLimits; use Carp qw( carp ); diff --git a/Koha/Account.pm b/Koha/Account.pm index 39ad641b77..793b71fe6b 100644 --- a/Koha/Account.pm +++ b/Koha/Account.pm @@ -37,7 +37,7 @@ use Koha::Account::DebitTypes; use Koha::Exceptions; use Koha::Exceptions::Account; use Koha::Plugins; -use Koha::Statistic; +use Koha::Statistics; =head1 NAME diff --git a/Koha/BackgroundJob/PseudonymizeStatistic.pm b/Koha/BackgroundJob/PseudonymizeStatistic.pm index 440ecca7da..ef2122e2ae 100644 --- a/Koha/BackgroundJob/PseudonymizeStatistic.pm +++ b/Koha/BackgroundJob/PseudonymizeStatistic.pm @@ -18,7 +18,7 @@ package Koha::BackgroundJob::PseudonymizeStatistic; use Modern::Perl; use Koha::PseudonymizedTransactions; -use Koha::Statistic; +use Koha::Statistics; use base 'Koha::BackgroundJob'; diff --git a/Koha/ILL/Request.pm b/Koha/ILL/Request.pm index 7ae66ca634..100f461ec8 100644 --- a/Koha/ILL/Request.pm +++ b/Koha/ILL/Request.pm @@ -45,7 +45,7 @@ use Koha::Items; use Koha::Libraries; use Koha::AdditionalContents; use Koha::Patron; -use Koha::Statistic; +use Koha::Statistics; use C4::Circulation qw( CanBookBeIssued AddIssue ); diff --git a/Koha/Item.pm b/Koha/Item.pm index 4b0b29cbeb..2d5a40199e 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -57,7 +57,7 @@ use Koha::StockRotationItem; use Koha::StockRotationRotas; use Koha::TrackedLinks; use Koha::Policy::Holds; -use Koha::Statistic; +use Koha::Statistics; use base qw(Koha::Object); diff --git a/Koha/Recalls.pm b/Koha/Recalls.pm index fa5d6ecb40..6c97920632 100644 --- a/Koha/Recalls.pm +++ b/Koha/Recalls.pm @@ -24,7 +24,7 @@ use Koha::Database; use Koha::Recall; use Koha::DateUtils qw( dt_from_string ); use Koha::Plugins; -use Koha::Statistic; +use Koha::Statistics; use base qw(Koha::Objects); diff --git a/misc/maintenance/pseudonymize_statistics.pl b/misc/maintenance/pseudonymize_statistics.pl index 88a6f8e3ff..8b2aa4ef65 100755 --- a/misc/maintenance/pseudonymize_statistics.pl +++ b/misc/maintenance/pseudonymize_statistics.pl @@ -21,7 +21,6 @@ use Pod::Usage qw( pod2usage ); use Koha::DateUtils qw( dt_from_string format_sqldatetime ); use Koha::Script; -use Koha::Statistic; use Koha::Statistics; use Koha::PseudonymizedTransactions; diff --git a/t/db_dependent/Koha/Pseudonymization.t b/t/db_dependent/Koha/Pseudonymization.t index aef92be88d..66aa3c60ca 100755 --- a/t/db_dependent/Koha/Pseudonymization.t +++ b/t/db_dependent/Koha/Pseudonymization.t @@ -30,7 +30,6 @@ use Koha::Database; use Koha::DateUtils qw( dt_from_string ); use Koha::Patrons; use Koha::PseudonymizedTransactions; -use Koha::Statistic; use Koha::Statistics; use t::lib::TestBuilder; diff --git a/t/db_dependent/Koha/Statistic.t b/t/db_dependent/Koha/Statistic.t index 566abccbe6..8be5576e1e 100755 --- a/t/db_dependent/Koha/Statistic.t +++ b/t/db_dependent/Koha/Statistic.t @@ -23,7 +23,6 @@ use Test::More tests => 3; use Test::Warn; use Koha::DateUtils qw(dt_from_string); -use Koha::Statistic; use Koha::Statistics; use Koha::Database; diff --git a/t/db_dependent/Koha/Statistics.t b/t/db_dependent/Koha/Statistics.t index c20577ce98..d21e59db2f 100755 --- a/t/db_dependent/Koha/Statistics.t +++ b/t/db_dependent/Koha/Statistics.t @@ -25,7 +25,6 @@ use Test::Exception; use C4::Context; use Koha::Database; -use Koha::Statistic; use Koha::Statistics; use t::lib::TestBuilder;