From 1ee8c34bf5a970a9b25f3fc16e4482bddcf2111d Mon Sep 17 00:00:00 2001 From: lmarcouiller Date: Mon, 19 Oct 2020 14:20:49 +0200 Subject: [PATCH] FIX pb of duplicate event on command when refreshing the page after command classification as billed or closed --- htdocs/commande/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index bd0d7c469a5..fe40a4f9306 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -1283,8 +1283,8 @@ if (empty($reshook)) } //Used to not reclass as a billed or closed command which is already billed by refreshing the page - if (strpos($_SERVER["REQUEST_URI"], 'action=classifybilled') && $object->billed - || strpos($_SERVER["REQUEST_URI"], 'action=confirm_shipped') && Commande::STATUS_CLOSED + if (strpos($_SERVER["REQUEST_URI"], 'action=classifybilled') && $object->billed + || strpos($_SERVER["REQUEST_URI"], 'action=confirm_shipped') && Commande::STATUS_CLOSED ) { header("Location: $_SERVER[PHP_SELF]?id=$object->id");