add listNeedsCorrection

This commit is contained in:
Uwe Steinmann 2018-03-01 21:29:12 +01:00
parent eda033babe
commit 0066d29650
2 changed files with 19 additions and 0 deletions

View File

@ -1592,6 +1592,24 @@ class SeedDMS_Core_DMS {
else $queryStr .= "ORDER BY `name`";
$queryStr .= " ".$orderdir;
break; // }}}
case 'NeedsCorrectionOwner': // Documents that needs correction and I'm owning {{{
$queryStr .= "WHERE 1=1 ";
$user = $param1;
$orderby = $param3;
if($param4 == 'desc')
$orderdir = 'DESC';
else
$orderdir = 'ASC';
$queryStr .= "AND `tblDocuments`.`owner` = '".$user->getID()."' ".
"AND `tblDocumentStatusLog`.`status` IN (".S_NEEDS_CORRECTION.") ";
//$queryStr .= "ORDER BY `statusDate` DESC";
if ($orderby=='e') $queryStr .= "ORDER BY `expires`";
else if ($orderby=='u') $queryStr .= "ORDER BY `statusDate`";
else if ($orderby=='s') $queryStr .= "ORDER BY `status`";
else $queryStr .= "ORDER BY `name`";
$queryStr .= " ".$orderdir;
break; // }}}
case 'DraftOwner': // Documents in draft status and I'm owning {{{
$queryStr .= "WHERE 1=1 ";

View File

@ -24,6 +24,7 @@
</stability>
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
<notes>
add list 'NeedsCorrectionOwner' to SeedDMS_Core_DMS::getDocumentList()
</notes>
<contents>
<dir baseinstalldir="SeedDMS" name="/">