mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
- show warning if document is in a workflow
This commit is contained in:
parent
c2040d6abb
commit
bb32deb74f
|
@ -99,20 +99,20 @@ function checkForm()
|
||||||
print "</div>";
|
print "</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Retrieve a list of all users and groups that have review / approve
|
if($workflowmode != 'traditional') {
|
||||||
// privileges.
|
$latestContent = $document->getLatestContent();
|
||||||
$docAccess = $document->getApproversList();
|
if($status = $latestContent->getStatus()) {
|
||||||
?>
|
if($status["status"] == S_IN_WORKFLOW) {
|
||||||
|
$this->warningMsg("The current version of this document is in a workflow. This will be interrupted and cannot be completed if you upload a new version.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
<div class="alert alert-warning">
|
$msg = getMLText("max_upload_size").": ".ini_get( "upload_max_filesize");
|
||||||
<?php echo getMLText("max_upload_size").": ".ini_get( "upload_max_filesize"); ?>
|
if($enablelargefileupload) {
|
||||||
<?php
|
$msg .= "<p>".sprintf(getMLText('link_alt_updatedocument'), "out.AddMultiDocument.php?folderid=".$folder->getID()."&showtree=".showtree())."</p>";
|
||||||
if($enablelargefileupload) {
|
}
|
||||||
printf(getMLText('link_alt_updatedocument'), "out.UpdateDocument2.php?documentid=".$document->getID());
|
$this->warningMsg($msg);
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
@ -161,6 +161,9 @@ function checkForm()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($workflowmode == 'traditional') {
|
if($workflowmode == 'traditional') {
|
||||||
|
// Retrieve a list of all users and groups that have review / approve
|
||||||
|
// privileges.
|
||||||
|
$docAccess = $document->getApproversList();
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user