From accec09c9889a85f46624f848ade64ef187be5e5 Mon Sep 17 00:00:00 2001 From: rMalie Date: Thu, 11 Aug 2011 09:59:23 +0000 Subject: [PATCH] // Fix Product->setStock() --- 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