// Fix for quantities update

This commit is contained in:
rGaillard
2012-10-22 16:40:10 +00:00
parent 6972e65a4c
commit 7c76c6048d
+3
View File
@@ -484,6 +484,9 @@ class StockAvailableCore extends ObjectModel
$stock_available->id_product_attribute = (int)$id_product_attribute; $stock_available->id_product_attribute = (int)$id_product_attribute;
$stock_available->quantity = (int)$quantity; $stock_available->quantity = (int)$quantity;
if ($id_shop === null)
$shop_group = Shop::getContextShopGroup();
else
$shop_group = new ShopGroup((int)Shop::getGroupFromShop((int)$id_shop)); $shop_group = new ShopGroup((int)Shop::getGroupFromShop((int)$id_shop));
// if quantities are shared between shops of the group // if quantities are shared between shops of the group