From 8770c6c0fb7a69f1c5da7d43acb4307888557124 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 2 Dec 2021 15:31:19 +0000 Subject: [PATCH] Bug 27138: (follow-up) Remove extraneous require and use Koha::Items --- C4/Biblio.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index b28c3a8771..c72abe5a8d 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -109,6 +109,7 @@ use Koha::Authority::Types; use Koha::Acquisition::Currencies; use Koha::Biblio::Metadatas; use Koha::Holds; +use Koha::Items; use Koha::ItemTypes; use Koha::MarcOverlayRules; use Koha::Plugins; @@ -2620,7 +2621,6 @@ sub EmbedItemsInMarcBiblio { my $opachiddenitems = $opac && ( C4::Context->preference('OpacHiddenItems') !~ /^\s*$/ ); - require C4::Items; foreach my $itemnumber ( @$all_itemnumbers ) { next if @$itemnumbers and not grep { $_ == $itemnumber } @$itemnumbers; my $item; -- 2.20.1