mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 23:24:57 +00:00
ReceiveOwner list does not contain old versions anymore
This commit is contained in:
parent
f54ed82496
commit
f181ca044d
|
@ -1218,7 +1218,7 @@ class SeedDMS_Core_DMS {
|
|||
// "AND `tblDocumentStatusLog`.`status` IN (".S_DRAFT_REV.", ".S_DRAFT_APP.") ".
|
||||
// "ORDER BY `statusDate` DESC";
|
||||
break; // }}}
|
||||
case 'ReceiveOwner': // Documents waiting for reception I'm owning {{{
|
||||
case 'ReceiveOwner': // Documents having a reception I'm owning {{{
|
||||
$queryStr .= "WHERE 1=1 ";
|
||||
|
||||
$user = $param1;
|
||||
|
@ -1228,7 +1228,9 @@ class SeedDMS_Core_DMS {
|
|||
else
|
||||
$orderdir = 'ASC';
|
||||
|
||||
$qs = 'SELECT DISTINCT `documentID` FROM `tblDocumentRecipients` LEFT JOIN `ttcontentid` ON `ttcontentid`.`maxVersion` = `tblDocumentRecipients`.`version` AND `ttcontentid`.`document` = `tblDocumentRecipients`.`documentID`';
|
||||
// $qs = 'SELECT DISTINCT `documentID` FROM `tblDocumentRecipients` LEFT JOIN `ttcontentid` ON `ttcontentid`.`maxVersion` = `tblDocumentRecipients`.`version` AND `ttcontentid`.`document` = `tblDocumentRecipients`.`documentID`';
|
||||
// sql statement without older versions of a document
|
||||
$qs = 'SELECT DISTINCT `document` as `documentID` FROM `ttcontentid` a LEFT JOIN `tblDocumentRecipients` b on a.`document`=b.`documentID` AND a.`maxVersion`=b.`version` WHERE b.`receiptID` IS NOT NULL';
|
||||
$ra = $this->db->getResultArray($qs);
|
||||
if (is_bool($ra) && !$ra) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user