From febabd7efebd0a5d26ddb2c523593575161346b6 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 18 Jul 2022 12:47:49 -0300 Subject: [PATCH] Bug 31177: Fix misplaced import in C4::ILSDI::Services MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomas Cohen Arazi Signed-off-by: Joonas Kylmälä Signed-off-by: Tomas Cohen Arazi (cherry picked from commit cb2fd089af2756c91a4839ca23bb6e8c7356a41b) Signed-off-by: Lucas Gass --- C4/ILSDI/Services.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index 02fe8e12ed..b33d794650 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -36,6 +36,7 @@ use C4::AuthoritiesMarc qw( GetAuthorityXML ); use Koha::Biblios; use Koha::Checkouts; +use Koha::I18N qw(__); use Koha::Items; use Koha::Libraries; use Koha::Patrons; @@ -961,8 +962,6 @@ sub _availability { my ($itemnumber) = @_; my $item = Koha::Items->find($itemnumber); - use Koha::I18N; - unless ( $item ) { return ( undef, __('unknown'), __('Error: could not retrieve availability for this ID'), undef ); } -- 2.39.5