From a245fdbf18511e5eec0fbf2d5edb4ce6598baf79 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 649154c..bbfcc75 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