From 38825d655121b5b34f8f8d8654b69b4bb182b583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Thu, 22 Nov 2012 10:49:50 +0100 Subject: [PATCH] [-] Core: Fix #PSCFV-5561 many payment informations are added when product is out of stock on order validation --- classes/PaymentModule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }