mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
finishRevision() puts document version in to 'waiting'
need to be able to start a new revision
This commit is contained in:
parent
c98ff36977
commit
0d5f7a607a
|
@ -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
|
/* 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
|
* not. If a document was released or rejected the revision are useless
|
||||||
* anyway
|
* anyway
|
||||||
|
*/
|
||||||
foreach($revisionStatus as $status) {
|
foreach($revisionStatus as $status) {
|
||||||
if($status['status'] != S_LOG_SLEEPING && $status['status'] != S_LOG_USER_REMOVED) {
|
if($status['status'] != S_LOG_SLEEPING && $status['status'] != S_LOG_USER_REMOVED) {
|
||||||
$queryStr = "INSERT INTO `tblDocumentRevisionLog` (`revisionID`, `status`,
|
$queryStr = "INSERT INTO `tblDocumentRevisionLog` (`revisionID`, `status`,
|
||||||
|
@ -4819,7 +4820,6 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
if(!$this->setStatus($docstatus, $docmsg, $requestUser)) {
|
if(!$this->setStatus($docstatus, $docmsg, $requestUser)) {
|
||||||
$db->rollbackTransaction();
|
$db->rollbackTransaction();
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user