Bug 22696: (follow-up) Use new relationship for prefetching

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Tomas Cohen Arazi 2019-04-19 11:29:49 -03:00 committed by Nick Clemens
parent 4a0fa82a5b
commit 40ed0baba7
1 changed files with 1 additions and 2 deletions

View File

@ -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;