From 695b51c054171b166507d2ecfea83ea3afbcf0b3 Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Fri, 6 Jan 2023 16:11:01 -0700 Subject: [PATCH] Bug 32585: (bug 32583 follow-up) Fix some variable references Bug 32583 change the $item variable from a hash to an object. Trivial patch to change some hash references to object method calls. Signed-off-by: David Nind Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 10a8203811a979d0a7190b4df1411be33a1b6dd9) Signed-off-by: Matt Blenkinsop --- catalogue/moredetail.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl index 6611790e23..d213330dac 100755 --- a/catalogue/moredetail.pl +++ b/catalogue/moredetail.pl @@ -169,12 +169,12 @@ foreach my $item (@items){ # item has a host number if its biblio number does not match the current bib if ($item->biblionumber ne $biblionumber){ - $item_info->{hostbiblionumber} = $item->{biblionumber}; + $item_info->{hostbiblionumber} = $item->biblionumber; $item_info->{hosttitle} = $item->biblio->title; } # FIXME The acquisition code below could be improved using methods from Koha:: objects - my $order = GetOrderFromItemnumber( $item->{'itemnumber'} ); + my $order = GetOrderFromItemnumber( $item->itemnumber ); $item_info->{'basketno'} = $order->{'basketno'}; $item_info->{'orderdate'} = $order->{'entrydate'}; if ($item_info->{'basketno'}){ -- 2.39.5