From d486d7ff03df2b1da594593c27079047c01c2331 Mon Sep 17 00:00:00 2001
From: Nick Clemens <nick@bywatersolutions.com>
Date: Wed, 25 May 2022 14:33:26 +0000
Subject: [PATCH] Bug 30847: Avoid fetching biblio object

Here the items biblionumber is either equal to the biblionumber passed in
or it is not and should be - we can just assign directly from the item in all
cases
---
 opac/opac-reserve.pl | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl
index 748a08d168..5338463649 100755
--- a/opac/opac-reserve.pl
+++ b/opac/opac-reserve.pl
@@ -234,12 +234,9 @@ if ( $query->param('place_reserve') ) {
             }
         }
 
-#item may belong to a host biblio, if yes change biblioNum to hosts bilbionumber
+        # if we have an item, we are placing the hold on the item's bib, in case of analytics
         if ( $item ) {
-            my $hostbiblioNum = $item->biblio->biblionumber;
-            if ( $hostbiblioNum ne $biblioNum ) {
-                $biblioNum = $hostbiblioNum;
-            }
+            $biblioNum = $item->biblionumber;
         }
 
         my $biblioData = $biblioDataHash{$biblioNum};
-- 
2.30.2