From 1af1970ca33c03e86ec60f4b0964e4369fce4316 Mon Sep 17 00:00:00 2001
From: Alex Arnaud <alex.arnaud@biblibre.com>
Date: Thu, 15 Feb 2018 11:13:09 +0000
Subject: [PATCH] Bug 15565 - remove use of GetBiblionumberFromItemnumber

---
 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 56d3c15..dec2a61 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.7.4