From 4c103508b2d631a2b70dda005763b4d50b3d289b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 28 Oct 2015 09:11:54 +0000 Subject: [PATCH] Bug 14100: Fix t/db_dependent/Items.t prove t/db_dependent/Items.t Undefined subroutine &C4::Languages::getlanguage called at C4/Items.pm line 1304. Signed-off-by: Tomas Cohen Arazi --- C4/Items.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Items.pm b/C4/Items.pm index ec51058836..c8078b01ed 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1301,6 +1301,7 @@ sub GetItemsInfo { my ( $biblionumber ) = @_; my $dbh = C4::Context->dbh; # note biblioitems.* must be avoided to prevent large marc and marcxml fields from killing performance. + require C4::Languages; my $language = C4::Languages::getlanguage(); my $query = " SELECT items.*, -- 2.39.5