diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php index 670ce46c7..9de0ef3df 100644 --- a/classes/PaymentModule.php +++ b/classes/PaymentModule.php @@ -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(); }