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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16889 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-08-17 13:55:33 +00:00
parent ed1f586643
commit c512507298
+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);