From 2596898a4b013bd1ba39544a06a94ad719da2ed1 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Thu, 15 Feb 2018 11:13:09 +0000 Subject: [PATCH] Bug 15565 - remove use of GetBiblionumberFromItemnumber Signed-off-by: Benjamin Rokseth --- opac/opac-reserve.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index cf26802..ac84df9 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -242,7 +242,7 @@ if ( $query->param('place_reserve') ) { my $biblionumber = $biblioNum; #item may belong to a host biblio, if yes change biblioNum to hosts bilbionumber - my $hostbiblioNum = GetBiblionumberFromItemnumber($itemnumber); + my $hostbiblioNum = Koha::Items->find( $itemnumber )->biblio->biblionumber; if ( $hostbiblioNum ne $biblioNum ) { $biblionumber = $hostbiblioNum; } -- 2.1.4