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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15161 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-05-10 10:04:37 +00:00
parent 29ec1a1bd0
commit d1ed1818eb
+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(),