mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
add new revisor when transfering processes even in status 'sleeping'
This commit is contained in:
parent
8eec73b4be
commit
a34cd8b4ee
|
@ -1022,8 +1022,8 @@ class SeedDMS_Core_User { /* {{{ */
|
||||||
$db->rollbackTransaction();
|
$db->rollbackTransaction();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
/* Only revisions not done already can be transferred to a new user */
|
/* Only revisions not already done or sleeping can be transferred to a new user */
|
||||||
if($newuser && $ri['status'] == 0) {
|
if($newuser && in_array($ri['status'], array(S_LOG_WAITING, S_LOG_SLEEPING))) {
|
||||||
if($doc = $this->_dms->getDocument($ri['documentID'])) {
|
if($doc = $this->_dms->getDocument($ri['documentID'])) {
|
||||||
if($version = $doc->getContentByVersion($ri['version'])) {
|
if($version = $doc->getContentByVersion($ri['version'])) {
|
||||||
$ret = $version->addIndRevisor($newuser, $user);
|
$ret = $version->addIndRevisor($newuser, $user);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user