// Fix small bug

This commit is contained in:
rGaillard
2012-08-06 13:55:43 +00:00
parent 6abec99fd3
commit b6f9bfce79
3 changed files with 3 additions and 7 deletions
-3
View File
@@ -4748,9 +4748,6 @@ class ProductCore extends ObjectModel
if (Configuration::get('PS_ADVANCED_STOCK_MANAGEMENT') && is_null($manager))
$manager = StockManagerFactory::getManager();
if (is_null($id_shop))
$id_shop = Context::getContext()->shop->id;
if (Configuration::get('PS_ADVANCED_STOCK_MANAGEMENT') && Product::usesAdvancedStockManagement($id_product) &&
StockAvailable::dependsOnStock($id_product, $id_shop))
return $manager->getProductRealQuantities($id_product, $id_product_attribute, $id_warehouse, true);