// Current cart should not be displayed in the old cart in the order creation (BO) #PSCFV-3566

This commit is contained in:
dMetzger
2012-08-17 13:55:33 +00:00
parent 9b3502c02e
commit 6dd413eb4c
+1 -1
View File
@@ -625,7 +625,7 @@ class AdminCartsControllerCore extends AdminController
foreach ($carts as $key => &$cart)
{
$cart_obj = new Cart((int)$cart['id_cart']);
if (!Validate::isLoadedObject($cart_obj) || $cart_obj->OrderExists())
if ($cart['id_cart'] == $this->context->cart->id || !Validate::isLoadedObject($cart_obj) || $cart_obj->OrderExists())
unset($carts[$key]);
$currency = new Currency((int)$cart['id_currency']);
$cart['total_price'] = Tools::displayPrice($cart_obj->getOrderTotal(), $currency);