mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-31 22:17:33 +00:00
addRevisor() puts recheck into waiting if recheck has already begun
previously it was put into sleeping, which didn't the user/group to do the recheck.
This commit is contained in:
parent
0a38435a2d
commit
f4c25576bc
|
@ -4547,8 +4547,12 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
|||
$revisionID = isset($indstatus["revisionID"]) ? $indstatus["revisionID"] : NULL;
|
||||
}
|
||||
|
||||
/* If a user is added when the revision has already been startet, then
|
||||
* put it in S_LOG_WAITING already.
|
||||
*/
|
||||
$st=$this->getStatus();
|
||||
$queryStr = "INSERT INTO `tblDocumentRevisionLog` (`revisionID`, `status`, `comment`, `date`, `userID`) ".
|
||||
"VALUES ('". $revisionID ."', '".S_LOG_SLEEPING."', '', ".$db->getCurrentDatetime().", '". $requestUser->getID() ."')";
|
||||
"VALUES ('". $revisionID ."', '".($st["status"] == S_IN_REVISION ? S_LOG_WAITING : S_LOG_SLEEPING)."', '', ".$db->getCurrentDatetime().", '". $requestUser->getID() ."')";
|
||||
$res = $db->getResult($queryStr);
|
||||
if (is_bool($res) && !$res) {
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user