// Fix depends_on_stock on Adminproducts #PSCFV-2698
This commit is contained in:
1 parent
4b7011304e
commit
244863ff20
1 file changed
+3
-7
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user