allow to set status S_NEEDS_CORRECTION

This commit is contained in:
Uwe Steinmann 2019-10-18 07:24:33 +02:00
parent 7e3f490b57
commit 40ddfd3ea6

View File

@ -59,7 +59,7 @@ if (!is_object($content)) {
}
if (!isset($_POST["overrideStatus"]) || !is_numeric($_POST["overrideStatus"]) ||
(intval($_POST["overrideStatus"]) != S_RELEASED && intval($_POST["overrideStatus"]) != S_OBSOLETE && intval($_POST["overrideStatus"]) != S_DRAFT)) {
(intval($_POST["overrideStatus"]) != S_RELEASED && intval($_POST["overrideStatus"]) != S_OBSOLETE && intval($_POST["overrideStatus"]) != S_DRAFT && intval($_POST["overrideStatus"]) != S_NEEDS_CORRECTION)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_status"));
}