mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-13 00:29:31 +00:00
set propper date in timeline for scheduled revisions
This commit is contained in:
parent
b803c1d448
commit
4b8fad4605
|
@ -2842,8 +2842,8 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
foreach ($resArr as $row) {
|
foreach ($resArr as $row) {
|
||||||
if($row['revisiondate'])
|
if($row['revisiondate'] && substr($row['revisiondate'], 0, 4) != '0000')
|
||||||
$timeline[] = array('date'=>substr($row['revisiondate'], 0, 10), 'allday'=>true, 'msg'=>'Scheduled revision of version '.$row['version'], 'type'=>'scheduled_revesion', 'version'=>$row['version'], 'document'=>$this, 'params'=>array($row['version']));
|
$timeline[] = array('date'=>substr($row['revisiondate'], 0, 10)." 00:00:00", 'allday'=>true, 'msg'=>'Scheduled revision of version '.$row['version'], 'type'=>'scheduled_revision', 'version'=>$row['version'], 'document'=>$this, 'params'=>array($row['version']));
|
||||||
}
|
}
|
||||||
|
|
||||||
$queryStr = "SELECT * FROM `tblDocumentFiles` WHERE `document` = " . $this->_id;
|
$queryStr = "SELECT * FROM `tblDocumentFiles` WHERE `document` = " . $this->_id;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user