mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
fix: expedition set Draft do not reset display (#30699)
This commit is contained in:
parent
ce199c4206
commit
0885cd183e
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user