From d74e297ee739ee5ea3070e0b83faa3059b5df236 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 Signed-off-by: Katrin Fischer --- 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 1de7479..25fb74d 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -237,7 +237,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