mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-10-17 05:22:23 +00:00
add listNeedsCorrection
This commit is contained in:
parent
eda033babe
commit
0066d29650
|
@ -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 ";
|
||||
|
||||
|
|
|
@ -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="/">
|
||||
|
|
Loading…
Reference in New Issue
Block a user