[-] CORE : Fix bug #PSCFV-8705 stocks update for when no current state

This commit is contained in:
gRoussac committed 2013-04-22 12:09:35 +02:00
1 parent 31e7c6a08e
commit 4bf41c590b
1 file changed
+1
+1
View File
@@ -160,6 +160,7 @@ class OrderHistoryCore extends ObjectModel
if (Configuration::get('PS_ADVANCED_STOCK_MANAGEMENT')) if (Configuration::get('PS_ADVANCED_STOCK_MANAGEMENT'))
$manager = StockManagerFactory::getManager(); $manager = StockManagerFactory::getManager();
// foreach products of the order // foreach products of the order
if (Validate::isLoadedObject($old_os))
foreach ($order->getProductsDetail() as $product) foreach ($order->getProductsDetail() as $product)
{ {
// if becoming logable => adds sale // if becoming logable => adds sale