From 86acd6ec619ef74a70a2c7aa0d38a55b3c072ea7 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 Signed-off-by: Katrin Fischer --- 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 cb2f29aa28..85907394e9 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.39.5