fix: expedition set Draft do not reset display (#30699)

This commit is contained in:
HENRY Florian 2024-08-20 23:58:06 +02:00 committed by GitHub
parent ce199c4206
commit 0885cd183e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,6 +163,9 @@ if (empty($reshook)) {
$result = $object->setDraft($user, 0);
if ($result < 0) {
setEventMessages($object->error, $object->errors, 'errors');
} else {
header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
exit;
}
}
// Reopen
@ -171,6 +174,9 @@ if (empty($reshook)) {
$result = $object->reOpen();
if ($result < 0) {
setEventMessages($object->error, $object->errors, 'errors');
} else {
header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
exit;
}
}