FIX pb of duplicate event on command when refreshing the page after command classification as billed or closed
This commit is contained in:
parent
71db2603e1
commit
511943c052
@ -1283,12 +1283,12 @@ if (empty($reshook))
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Used to not reclass as billed a command which is already billed by refreshing the page
|
//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");
|
header("Location: $_SERVER[PHP_SELF]?id=$object->id");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
//Used to not reclass as closed command which is already closed by refreshing the page
|
//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");
|
header("Location: $_SERVER[PHP_SELF]?id=$object->id");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user