finishRevision() puts document version in to 'waiting'

need to be able to start a new revision
This commit is contained in:
Uwe Steinmann 2017-01-25 14:49:37 +01:00
parent c98ff36977
commit 0d5f7a607a

View File

@ -4805,6 +4805,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
/* Does it make sense to put all revisions into sleeping mode? I guess
* not. If a document was released or rejected the revision are useless
* anyway
*/
foreach($revisionStatus as $status) {
if($status['status'] != S_LOG_SLEEPING && $status['status'] != S_LOG_USER_REMOVED) {
$queryStr = "INSERT INTO `tblDocumentRevisionLog` (`revisionID`, `status`,
@ -4819,7 +4820,6 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
}
}
}
*/
if(!$this->setStatus($docstatus, $docmsg, $requestUser)) {
$db->rollbackTransaction();
return false;