From cdfd9ae914d262c1eff1a94af988ba23e090f931 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 30 Sep 2022 11:31:25 +0000 Subject: [PATCH] Bug 31663: Item transfers are not correctly displayed on item details page To test: 1 - Set an item in transit and confirm the transfer 2 - View details page for biblio 3 - Item shows 'Available' 4 - Apply patch 5 - Restart_all, reload page 6 - Item appears in transit Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- catalogue/detail.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index a06c470bf3..3af82774ce 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -403,10 +403,10 @@ foreach my $item (@items) { # Check the transit status my $transfer = $item->get_transfer; if ( $transfer && $transfer->in_transit ) { - $item->{transfertwhen} = $transfer->datesent; - $item->{transfertfrom} = $transfer->frombranch; - $item->{transfertto} = $transfer->tobranch; - $item->{nocancel} = 1; + $item_info->{transfertwhen} = $transfer->datesent; + $item_info->{transfertfrom} = $transfer->frombranch; + $item_info->{transfertto} = $transfer->tobranch; + $item_info->{nocancel} = 1; } foreach my $f (qw( itemnotes )) { -- 2.39.5