FIX: page was not reloaded after addline causing a new lline creation was page was reloaded

This commit is contained in:
Noé Courtier 2023-01-24 14:21:14 +01:00
parent dac3acd71f
commit b964f1a476

View File

@ -1161,8 +1161,9 @@ if (empty($reshook)) {
setEventMessages($object->error, $object->errors, 'errors');
}
}
$action = '';
header("Location: ".$_SERVER["PHP_SELF"]."?id=".GETPOST('id', 'int'));
exit;
}
if ($action == 'confirm_delete_line' && GETPOST("confirm", 'alpha') == "yes" && $user->rights->expensereport->creer) {