From 9ced781409e86991659b9ed712f371494f06ad94 Mon Sep 17 00:00:00 2001 From: "Cameron E. Tidd" Date: Sat, 19 Jul 2025 23:18:56 +0000 Subject: [PATCH 14/16] Fix library limit method issue by defining use statements --- Koha/Report.pm | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/Koha/Report.pm b/Koha/Report.pm index 2f8da9de2b..8c292a16a8 100644 --- a/Koha/Report.pm +++ b/Koha/Report.pm @@ -20,9 +20,13 @@ use Modern::Perl; use Koha::Database; use Koha::Reports; -#use Koha::DateUtils qw( dt_from_string output_pref ); +use Koha::Object; +use Koha::Object::Limit::Library; use base qw(Koha::Object Koha::Object::Limit::Library); + +#use Koha::DateUtils qw( dt_from_string output_pref ); + # # FIXME We could only return an error code instead of the arrayref # Only 1 error is returned @@ -258,6 +262,16 @@ sub _might_add_limit { return $sql; } +=head3 _type + +Returns name of corresponding DBIC resultset + +=cut + +sub _type { + return 'SavedSql'; +} + =head3 _library_limits Configurable library limits @@ -272,14 +286,4 @@ sub _library_limits { }; } -=head3 _type - -Returns name of corresponding DBIC resultset - -=cut - -sub _type { - return 'SavedSql'; -} - 1; -- 2.39.5