From 6c7970d3278370d4dfeace2fe12e25b7ac3a4a8e Mon Sep 17 00:00:00 2001 From: Nick Clemens 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 37929e18038..23da777b3cf 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -240,12 +240,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.25.1