Bug 22360: (bug 21205 follow-up) Restore OPACAcquisitionDetails behavior
Caused by commit7d10549ae8Bug 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 <josef.moravec@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> (cherry picked from commit2331b8a295) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commitdb36421446) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
ccdc3afb14
commit
8bde7a2254
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue