From 3da2892b0ea2910283295df849220cfdb4596727 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Fri, 23 Mar 2012 10:30:53 +0000 Subject: [PATCH] [-] Core: Fix bad card context assignation git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14236 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Product.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/Product.php b/classes/Product.php index 74d9085b0..21c467f54 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -2274,7 +2274,8 @@ class ProductCore extends ObjectModel die(Tools::displayError()); $cur_cart = new Cart($id_cart); // Store cart in context to avoid multiple instantiations in BO - $context->cart = $cur_cart; + if (!Validate::isLoadedObject($context->cart)) + $context->cart = $cur_cart; } $cart_quantity = 0;