mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
document status S_DRAFT can be set
This commit is contained in:
parent
5a29cde314
commit
1bc5e6116c
|
@ -54,7 +54,7 @@ if (!is_object($content)) {
|
|||
}
|
||||
|
||||
if (!isset($_POST["overrideStatus"]) || !is_numeric($_POST["overrideStatus"]) ||
|
||||
(intval($_POST["overrideStatus"])<-3 && intval($_POST["overrideStatus"])>2)) {
|
||||
(intval($_POST["overrideStatus"]) != S_RELEASED && intval($_POST["overrideStatus"]) != S_OBSOLETE && intval($_POST["overrideStatus"]) != S_DRAFT)) {
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_status"));
|
||||
}
|
||||
|
||||
|
|
|
@ -87,8 +87,9 @@ function checkForm()
|
|||
<option value=''></option>
|
||||
<?php
|
||||
|
||||
if ($overallStatus["status"] == S_OBSOLETE) echo "<option value='".S_RELEASED."'>".getOverallStatusText(S_RELEASED)."</option>";
|
||||
if ($overallStatus["status"] == S_RELEASED) echo "<option value='".S_OBSOLETE."'>".getOverallStatusText(S_OBSOLETE)."</option>";
|
||||
if ($overallStatus["status"] != S_RELEASED) echo "<option value='".S_RELEASED."'>".getOverallStatusText(S_RELEASED)."</option>";
|
||||
if ($overallStatus["status"] != S_OBSOLETE) echo "<option value='".S_OBSOLETE."'>".getOverallStatusText(S_OBSOLETE)."</option>";
|
||||
if ($overallStatus["status"] != S_DRAFT) echo "<option value='".S_DRAFT."'>".getOverallStatusText(S_DRAFT)."</option>";
|
||||
|
||||
?>
|
||||
</select>
|
||||
|
|
Loading…
Reference in New Issue
Block a user