// fix db_prefix missing
This commit is contained in:
@@ -179,7 +179,7 @@ class StockAvailableCore extends ObjectModel
|
||||
$id_shop = Context::getContext()->shop->getID(true);
|
||||
|
||||
Db::getInstance()->autoExecute(
|
||||
'stock_available',
|
||||
_DB_PREFIX_.'stock_available',
|
||||
array('depends_on_stock' => (bool)$depends_on_stock),
|
||||
'UPDATE',
|
||||
'id_product = '.(int)$id_product.' AND id_shop = '.(int)$id_shop
|
||||
@@ -289,4 +289,4 @@ class StockAvailableCore extends ObjectModel
|
||||
$stock_available->quantity = $stock_available->quantity + $delta_quantity;
|
||||
$stock_available->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user