mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 04:56:06 +00:00
set workflow in addContent() after initial status has been set
This commit is contained in:
parent
0fbc5cc289
commit
a16b58a9fa
|
@ -1197,9 +1197,6 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
unset($this->_content);
|
||||
unset($this->_latestContent);
|
||||
$content = $this->getLatestContent($contentID);
|
||||
// $content = new SeedDMS_Core_DocumentContent($contentID, $this, $version, $comment, $date, $user->getID(), $dir, $orgFileName, $fileType, $mimeType, $filesize, $checksum);
|
||||
if($workflow)
|
||||
$content->setWorkflow($workflow, $user);
|
||||
$docResultSet = new SeedDMS_Core_AddContentResultSet($content);
|
||||
|
||||
if($attributes) {
|
||||
|
@ -1228,6 +1225,9 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
$statusID = $db->getInsertID();
|
||||
|
||||
if($workflow)
|
||||
$content->setWorkflow($workflow, $user);
|
||||
|
||||
// Add reviewers into the database. Reviewers must review the document
|
||||
// and submit comments, if appropriate. Reviewers can also recommend that
|
||||
// a document be rejected.
|
||||
|
|
Loading…
Reference in New Issue
Block a user