[-] CORE : Fix bug #PSCFV-8705 stocks update for when no current state
This commit is contained in:
1 parent
31e7c6a08e
commit
4bf41c590b
1 file changed
+1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user