From f9082d3edcbf0eee94803999c006d0a5fb29db45 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 5 Apr 2024 13:56:22 +0200 Subject: [PATCH] Bug 35959: Fix C3 merge of 5 modules Test plan: Run the following commands: perl -c Koha/AuthorisedValue.pm perl -c Koha/Patron/Category.pm perl -c Koha/Patron/Attribute/Type.pm perl -c Koha/Account/DebitType.pm perl -c Koha/Account/CreditType.pm They should all print 'syntax OK' Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- Koha/Object/Limit/Library.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/Object/Limit/Library.pm b/Koha/Object/Limit/Library.pm index cb2f29aa283..85907394e9c 100644 --- a/Koha/Object/Limit/Library.pm +++ b/Koha/Object/Limit/Library.pm @@ -19,7 +19,6 @@ use Modern::Perl; use Koha::Database; use Koha::Exceptions; -use Koha::Libraries; use Try::Tiny qw( catch try ); @@ -87,6 +86,8 @@ sub get_library_limits { return unless @branchcodes; + require Koha::Libraries; + my $filter = [ map { { branchcode => $_ } } @branchcodes ]; my $libraries = Koha::Libraries->search( $filter ); -- 2.45.2