From 40ed0baba7f1156ba63d2a8ee095b40db66e13c8 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 19 Apr 2019 11:29:49 -0300 Subject: [PATCH] Bug 22696: (follow-up) Use new relationship for prefetching Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens --- opac/opac-ISBDdetail.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opac/opac-ISBDdetail.pl b/opac/opac-ISBDdetail.pl index 3fecc84228..4ae688203b 100755 --- a/opac/opac-ISBDdetail.pl +++ b/opac/opac-ISBDdetail.pl @@ -45,7 +45,6 @@ use C4::Auth; use C4::Context; use C4::Output; use CGI qw ( -utf8 ); -use MARC::Record; use C4::Biblio; use C4::Items; use C4::Reserves; @@ -78,7 +77,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( ); -my $biblio = Koha::Biblios->find( $biblionumber, { prefetch => [ 'biblio_metadatas' ] } ); +my $biblio = Koha::Biblios->find( $biblionumber, { prefetch => 'metadata' } ); my $patron = Koha::Patrons->find($loggedinuser); my $opachiddenitems_rules; -- 2.39.5