[-] Core: Fix #PSCFV-5561 many payment informations are added when product is out of stock on order validation

This commit is contained in:
Rémi Gaillard
2012-11-22 10:49:50 +01:00
parent bd4085ac20
commit 38825d6551
+1 -1
View File
@@ -534,7 +534,7 @@ abstract class PaymentModuleCore extends Module
{
$history = new OrderHistory();
$history->id_order = (int)$order->id;
$history->changeIdOrderState(Configuration::get('PS_OS_OUTOFSTOCK'), $order);
$history->changeIdOrderState(Configuration::get('PS_OS_OUTOFSTOCK'), $order, true);
$history->addWithemail();
}