[-] Core: Fix PSCFV-2695 advanced stock management fix when you have no warehouse
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16435 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -201,11 +201,7 @@ class StockAvailableCore extends ObjectModel
|
|||||||
|
|
||||||
// In case there are no warehouses, removes product from StockAvailable
|
// In case there are no warehouses, removes product from StockAvailable
|
||||||
if (count($ids_warehouse) == 0)
|
if (count($ids_warehouse) == 0)
|
||||||
{
|
Db::getInstance()->update('stock_available', array('quantity' => 0 ), 'id_product = '.(int)$id_product);
|
||||||
StockAvailable::removeProductFromStockAvailable($id_product);
|
|
||||||
foreach ($ids_product_attribute as $id_product_attribute)
|
|
||||||
StockAvailable::removeProductFromStockAvailable($id_product, $id_product_attribute);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user