From a01a13274a249d93ac8bbe6a34386b95ca84f107 Mon Sep 17 00:00:00 2001 From: rMalie Date: Thu, 11 Aug 2011 09:59:23 +0000 Subject: [PATCH] // Fix Product->setStock() git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8018 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Product.php b/classes/Product.php index c7b9dcdf6..077c1afc7 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -2109,7 +2109,7 @@ class ProductCore extends ObjectModel if (!$context) $context = Context::getContext(); - $id_shop = $shop->getID(true); + $id_shop = $context->shop->getID(true); if (!isset(self::$cacheStock[$this->id][$id_product_attribute])) { $sql = 'SELECT quantity