mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
put revision date into log messages
This commit is contained in:
parent
8b796353a5
commit
2158225795
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user