mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
pass updating user to callback onSetStatus, finish revision when document status changes form inrevision to released
This commit is contained in:
parent
6319318773
commit
2e31004982
|
@ -3324,7 +3324,10 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
else $this->setStatus($initialstatus,$msg,$user);
|
||||
} elseif($st["status"]==S_IN_REVISION) {
|
||||
if($needsCorrection) $this->setStatus(S_NEEDS_CORRECTION,$msg,$user);
|
||||
else $this->setStatus(S_RELEASED,$msg,$user);
|
||||
else {
|
||||
$this->finishRevision($user, S_RELEASED, 'Finished revision workflow', $msg);
|
||||
// $this->setStatus(S_RELEASED,$msg,$user);
|
||||
}
|
||||
} elseif($st["status"]==S_EXPIRED) {
|
||||
$this->setStatus(S_RELEASED,$msg,$user);
|
||||
}
|
||||
|
@ -3685,7 +3688,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
/* Check if 'onSetStatus' callback is set */
|
||||
if(isset($this->_dms->callbacks['onSetStatus'])) {
|
||||
foreach($this->_dms->callbacks['onSetStatus'] as $callback) {
|
||||
$ret = call_user_func($callback[0], $callback[1], $this, $this->_status["status"], $status);
|
||||
$ret = call_user_func($callback[0], $callback[1], $this, $updateUser, $this->_status["status"], $status);
|
||||
if(is_bool($ret)) {
|
||||
unset($this->_status);
|
||||
if($ret)
|
||||
|
|
Loading…
Reference in New Issue
Block a user