[-] FO : fix #PSCFV-548 - when ordering out of stock downloadable product, the download is not available in order history

This commit is contained in:
tDidierjean
2012-05-10 10:04:37 +00:00
parent 35b4f42dd3
commit 7e7e932815
+1 -1
View File
@@ -169,7 +169,7 @@ class OrderDetailControllerCore extends FrontController
'currency' => new Currency($order->id_currency),
'order_state' => (int)($id_order_state),
'invoiceAllowed' => (int)(Configuration::get('PS_INVOICE')),
'invoice' => (OrderState::invoiceAvailable($id_order_state) && $order->invoice_number),
'invoice' => (OrderState::invoiceAvailable($id_order_state) && count($order->getInvoicesCollection())),
'order_history' => $order->getHistory($this->context->language->id, false, true),
'products' => $products,
'discounts' => $order->getCartRules(),