[-] Core: Fix #PSCFV-5561 many payment informations are added when product is out of stock on order validation
This commit is contained in:
1 parent
bd4085ac20
commit
38825d6551
1 file changed
+1
-1
@@ -534,7 +534,7 @@ abstract class PaymentModuleCore extends Module
|
|||||||
{
|
{
|
||||||
$history = new OrderHistory();
|
$history = new OrderHistory();
|
||||||
$history->id_order = (int)$order->id;
|
$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();
|
$history->addWithemail();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user