mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 04:56:06 +00:00
Merge branch 'seeddms-5.0.x' into seeddms-5.1.x
This commit is contained in:
commit
42c050588b
|
@ -2907,14 +2907,14 @@ class SeedDMS_Core_DMS {
|
|||
|
||||
return $resArr;
|
||||
case 'docspermonth':
|
||||
$queryStr = "select *, count(`key`) as total from (select ".$this->db->getDateExtract("date", '%Y-%m')." as `key` from tblDocuments) a group by `key` order by `key`";
|
||||
$queryStr = "select *, count(`key`) as total from (select ".$this->db->getDateExtract("date", '%Y-%m')." as `key` from `tblDocuments`) a group by `key` order by `key`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (!$resArr)
|
||||
return false;
|
||||
|
||||
return $resArr;
|
||||
case 'docsaccumulated':
|
||||
$queryStr = "select *, count(`key`) as total from (select ".$this->db->getDateExtract("date")." as `key` from tblDocuments) a group by `key` order by `key`";
|
||||
$queryStr = "select *, count(`key`) as total from (select ".$this->db->getDateExtract("date")." as `key` from `tblDocuments`) a group by `key` order by `key`";
|
||||
$resArr = $this->db->getResultArray($queryStr);
|
||||
if (!$resArr)
|
||||
return false;
|
||||
|
|
|
@ -2622,7 +2622,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
/* No need to add entries for new version because the status log
|
||||
* will generate an entry as well.
|
||||
$queryStr = "SELECT * FROM tblDocumentContent WHERE document = " . $this->_id;
|
||||
$queryStr = "SELECT * FROM `tblDocumentContent` WHERE `document` = " . $this->_id;
|
||||
$resArr = $db->getResultArray($queryStr);
|
||||
if (is_bool($resArr) && $resArr == false)
|
||||
return false;
|
||||
|
|
|
@ -928,8 +928,8 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
}
|
||||
|
||||
// TODO : update document status if reviewer/approver has been deleted
|
||||
// "DELETE FROM tblDocumentApproveLog WHERE userID = " . $this->_id;
|
||||
// "DELETE FROM tblDocumentReviewLog WHERE userID = " . $this->_id;
|
||||
// "DELETE FROM `tblDocumentApproveLog` WHERE `userID` = " . $this->_id;
|
||||
// "DELETE FROM `tblDocumentReviewLog` WHERE `userID` = " . $this->_id;
|
||||
|
||||
|
||||
$reviewStatus = $this->getReviewStatus();
|
||||
|
|
Loading…
Reference in New Issue
Block a user