[-] BO : fixed bug on product line edition in order page

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12087 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aFolletete
2012-01-03 16:50:06 +00:00
parent 253531415f
commit ecc1a41e30
+10 -10
View File
@@ -1523,6 +1523,16 @@ class AdminOrdersControllerCore extends AdminController
// Get the last product
$product = $products[$order_detail->id];
// Get invoices collection
$invoice_collection = $order->getInvoicesCollection();
$invoice_array = array();
foreach($invoice_collection as $invoice)
{
$invoice->name = $invoice->getInvoiceNumberFormatted(Context::getContext()->language->id);
$invoice_array[] = $invoice;
}
// Assign to smarty informations in order to show the new product line
$this->context->smarty->assign(array(
'product' => $product,
@@ -1535,16 +1545,6 @@ class AdminOrdersControllerCore extends AdminController
'current_index' => self::$currentIndex
));
// Get invoices collection
$invoice_collection = $order->getInvoicesCollection();
$invoice_array = array();
foreach($invoice_collection as $invoice)
{
$invoice->name = $invoice->getInvoiceNumberFormatted(Context::getContext()->language->id);
$invoice_array[] = $invoice;
}
if (!$res)
die(Tools::jsonEncode(array(
'result' => $res,