mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
init $ret in setStatus()
This commit is contained in:
parent
27b5af8ada
commit
3e63f1ffc0
|
@ -3458,6 +3458,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
}
|
||||
}
|
||||
|
||||
$ret = false;
|
||||
/* First check for a running workflow or open reviews, approvals, revisions. */
|
||||
if ($hasworkflow) { $newstatus = S_IN_WORKFLOW; $ret = $this->setStatus(S_IN_WORKFLOW,$msg,$user); }
|
||||
elseif ($pendingReview) { $newstatus = S_DRAFT_REV; $ret = $this->setStatus(S_DRAFT_REV,$msg,$user); }
|
||||
|
|
Loading…
Reference in New Issue
Block a user