From 8bde7a22542528eea18ebd21baf54805e8d0cbc7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 21 Feb 2019 15:28:10 -0300 Subject: [PATCH] Bug 22360: (bug 21205 follow-up) Restore OPACAcquisitionDetails behavior Caused by commit 7d10549ae8632e6640d3a99014268a2a1e46b3c4 Bug 21205: Replace C4::Items::GetOrderFromItemnumber calls At this point $order is a Koha::Acquisition::Order object, not a hashref anymore. Test plan: Create an order, receive items Enable OPACAcquisitionDetails At the detail page of the bibliographic record you should see "X items are on order." at the bottom of the items list Signed-off-by: Josef Moravec Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens (cherry picked from commit 2331b8a295ce3db011b88bf3d42eacd42c9df4ee) Signed-off-by: Martin Renvoize (cherry picked from commit db36421446fcdb40ac6aeeca3a7b7cb4a6711bda) Signed-off-by: Lucas Gass --- opac/opac-detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 2c61b369f9..8467c508af 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -647,7 +647,7 @@ if ( C4::Context->preference('OPACAcquisitionDetails' ) ) { push @itemnumbers_on_order, $itemnumber; } } - $total_quantity += $order->{quantity}; + $total_quantity += $order->quantity; } $template->{VARS}->{acquisition_details} = { total_quantity => $total_quantity, -- 2.39.5