// Fix depends_on_stock on Adminproducts #PSCFV-2698

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15906 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie committed 2012-06-07 09:14:16 +00:00
1 parent f74338ffd5
commit 5f0fee928c
1 file changed
+3 -7
+3 -7
View File
@@ -196,13 +196,9 @@ class StockAvailableCore extends ObjectModel
if ($existing_id > 0) if ($existing_id > 0)
{ {
Db::getInstance()->update( Db::getInstance()->update('stock_available', array(
'stock_available', 'depends_on_stock' => (int)$depends_on_stock
array('depends_on_stock' => (int)(bool)$depends_on_stock), ), 'id_stock_available = '.(int)$existing_id);
'id_product = '.(int)$id_product,
'id_product_attribute = '.(int)$id_product_attribute.
StockAvailable::addSqlShopRestriction(null, $id_shop)
);
} }
else else
{ {