add new revisor when transfering processes even in status 'sleeping'

This commit is contained in:
Uwe Steinmann 2020-07-20 19:31:47 +02:00
parent 8eec73b4be
commit a34cd8b4ee

View File

@ -1022,8 +1022,8 @@ class SeedDMS_Core_User { /* {{{ */
$db->rollbackTransaction();
return false;
}
/* Only revisions not done already can be transferred to a new user */
if($newuser && $ri['status'] == 0) {
/* Only revisions not already done or sleeping can be transferred to a new user */
if($newuser && in_array($ri['status'], array(S_LOG_WAITING, S_LOG_SLEEPING))) {
if($doc = $this->_dms->getDocument($ri['documentID'])) {
if($version = $doc->getContentByVersion($ri['version'])) {
$ret = $version->addIndRevisor($newuser, $user);