From 22707acfaed7e74486072f54b80996fb72dfb98e Mon Sep 17 00:00:00 2001 From: bMancone Date: Wed, 21 Sep 2011 09:47:30 +0000 Subject: [PATCH] // Fixed setStock(): Quantity is now set correctly git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8681 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 215b6004e..88fb2ff12 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -2154,7 +2154,7 @@ class ProductCore extends ObjectModel } // Change stock quantity on product - if ($id_stock = Stock::getStockId($this->id, $id_product_attribute, $shop->getID(true))) + if ($id_stock = Stock::getStockId($this->id, 0, $shop->getID(true))) { $sql = 'UPDATE '._DB_PREFIX_.'stock SET quantity = '.(($update) ? 'quantity + '. $quantity : $quantity).'