add more documentation is addRevisor()

This commit is contained in:
Uwe Steinmann 2020-07-20 19:30:36 +02:00
parent 77c2841d40
commit 8eec73b4be

View File

@ -5050,7 +5050,14 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
}
/* If a user is added when the revision has already been startet, then
* put it in S_IN_REVISION otherwise in S_LOG_WAITING.
* put it into S_LOG_WAITING otherwise into S_LOG_SLEEPING. Attention, if a
* document content is in any other status but S_IN_REVISION, then it will
* end up in S_LOG_SLEEPING. As this method is also called by removeFromProcesses()
* when another user takes over the processes, it may happen that revisions
* of document contents in status e.g. S_OBSOLETE, S_EXPIRED will change its
* status from S_LOG_WAITING to S_LOG_SLEEPING.
* This could only be fixed if this method could set an initial revision status
* by possibly passing it as another parameter to the method.
*/
$st=$this->getStatus();
$queryStr = "INSERT INTO `tblDocumentRevisionLog` (`revisionID`, `status`, `comment`, `date`, `userID`) ".