init $ret in setStatus()

This commit is contained in:
Uwe Steinmann 2022-02-11 10:56:14 +01:00
parent 27b5af8ada
commit 3e63f1ffc0

View File

@ -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); }