diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 655e3b2ef11..c64452fb3c3 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -1283,12 +1283,14 @@ if (empty($reshook)) } //Used to not reclass as billed a command which is already billed by refreshing the page - if (strpos( $_SERVER["REQUEST_URI"],'action=classifybilled') && $object->billed){ + if (strpos( $_SERVER["REQUEST_URI"],'action=classifybilled') && $object->billed) + { header("Location: $_SERVER[PHP_SELF]?id=$object->id"); exit(); } //Used to not reclass as closed command which is already closed by refreshing the page - if (strpos( $_SERVER["REQUEST_URI"],'action=confirm_shipped') && Commande::STATUS_CLOSED){ + if (strpos( $_SERVER["REQUEST_URI"],'action=confirm_shipped') && Commande::STATUS_CLOSED) + { header("Location: $_SERVER[PHP_SELF]?id=$object->id"); exit(); }