put revision date into log messages

This commit is contained in:
Uwe Steinmann 2020-12-01 12:37:13 +01:00
parent 8b796353a5
commit 2158225795

View File

@ -933,7 +933,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
/* We have sleeping revision, next check if the revision is already due */
if($lc->getRevisionDate() && $lc->getRevisionDate() <= date('Y-m-d 00:00:00')) {
if($lc->startRevision($user, 'Automatic start of revision workflow')) {
if($lc->startRevision($user, 'Automatic start of revision workflow scheduled for '.$lc->getRevisionDate())) {
if($next) {
$tmp = explode('-', substr($next, 0, 10));
if(checkdate($tmp[1], $tmp[2], $tmp[0]))
@ -5657,7 +5657,7 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
}
/* Set status only if at least one revision was started */
if($startedrev)
if(!$this->setStatus(S_IN_REVISION, "Started revision", $requestUser)) {
if(!$this->setStatus(S_IN_REVISION, "Started revision scheduled for ".$this->getRevisionDate(), $requestUser)) {
$db->rollbackTransaction();
return false;
}