Merge pull request #21744 from atm-jpb/NEW/redirectOnConfirmLine

NEW : add redirect on action confirm addconsumedline and addproduceline
This commit is contained in:
Laurent Destailleur 2022-08-14 15:19:38 +02:00 committed by GitHub
commit c0d9487f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,6 +174,8 @@ if (empty($reshook)) {
}
$action = '';
// Redirect to refresh the tab information
header("Location: ".$_SERVER["PHP_SELF"].'?id='.$object->id);
}
if (in_array($action, array('confirm_consumeorproduce', 'confirm_consumeandproduceall')) && $permissiontoproduce) {