mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
set return value and new status in verifyStatus()
This commit is contained in:
parent
2d3ec59c2d
commit
19266f1647
|
@ -3434,7 +3434,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
||||||
*/
|
*/
|
||||||
elseif ($st["status"]!=S_DRAFT && $st["status"]!=S_RELEASED ) {
|
elseif ($st["status"]!=S_DRAFT && $st["status"]!=S_RELEASED ) {
|
||||||
if($st["status"]==S_DRAFT_REV || $st["status"]==S_DRAFT_APP) {
|
if($st["status"]==S_DRAFT_REV || $st["status"]==S_DRAFT_APP) {
|
||||||
if($hasReview || $hasApproval) $this->setStatus(S_RELEASED,$msg,$user);
|
if($hasReview || $hasApproval) { $newstatus = S_RELEASED; $ret = $this->setStatus(S_RELEASED,$msg,$user); }
|
||||||
else { $newstatus = $initialstatus; $ret = $this->setStatus($initialstatus,$msg,$user); }
|
else { $newstatus = $initialstatus; $ret = $this->setStatus($initialstatus,$msg,$user); }
|
||||||
} elseif($st["status"]==S_IN_REVISION) {
|
} elseif($st["status"]==S_IN_REVISION) {
|
||||||
if($needsCorrection) { $newstatus = S_NEEDS_CORRECTION; $ret = $this->setStatus(S_NEEDS_CORRECTION,$msg,$user); }
|
if($needsCorrection) { $newstatus = S_NEEDS_CORRECTION; $ret = $this->setStatus(S_NEEDS_CORRECTION,$msg,$user); }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user