mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
getTimeline() checks also for new attachments
This commit is contained in:
parent
63a405cb74
commit
658d556c3d
|
@ -2275,18 +2275,18 @@ class SeedDMS_Core_DMS {
|
||||||
* entries in the database tables tblDocumentContent, tblDocumentFiles,
|
* entries in the database tables tblDocumentContent, tblDocumentFiles,
|
||||||
* and tblDocumentStatusLog
|
* and tblDocumentStatusLog
|
||||||
*
|
*
|
||||||
* @param string $start start date
|
* @param string $start start date, defaults to start of current day
|
||||||
* @param string $end end date
|
* @param string $end end date, defaults to end of start day
|
||||||
* @return array list of changes
|
* @return array list of changes
|
||||||
*/
|
*/
|
||||||
function getTimeline($startts='', $endts='') { /* {{{ */
|
function getTimeline($startts='', $endts='') { /* {{{ */
|
||||||
if(!$startts)
|
if(!$startts)
|
||||||
$startts = mktime(0, 0, 0);
|
$startts = mktime(0, 0, 0);
|
||||||
if(!$endts)
|
if(!$endts)
|
||||||
$startts = mktime(24, 0, 0);
|
$endts = $startts+86400;
|
||||||
$timeline = array();
|
$timeline = array();
|
||||||
|
|
||||||
$queryStr = "SELECT document FROM tblDocumentContent WHERE date > ".$startts." AND date < ".$endts;
|
$queryStr = "SELECT DISTINCT document FROM tblDocumentContent WHERE date > ".$startts." AND date < ".$endts." UNION SELECT DISTINCT document FROM tblDocumentFiles WHERE date > ".$startts." AND date < ".$endts;
|
||||||
$resArr = $this->db->getResultArray($queryStr);
|
$resArr = $this->db->getResultArray($queryStr);
|
||||||
if ($resArr === false)
|
if ($resArr === false)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user