mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 06:27:15 +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`";
|
else $queryStr .= "ORDER BY `name`";
|
||||||
$queryStr .= " ".$orderdir;
|
$queryStr .= " ".$orderdir;
|
||||||
break; // }}}
|
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 {{{
|
case 'DraftOwner': // Documents in draft status and I'm owning {{{
|
||||||
$queryStr .= "WHERE 1=1 ";
|
$queryStr .= "WHERE 1=1 ";
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
</stability>
|
</stability>
|
||||||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||||
<notes>
|
<notes>
|
||||||
|
add list 'NeedsCorrectionOwner' to SeedDMS_Core_DMS::getDocumentList()
|
||||||
</notes>
|
</notes>
|
||||||
<contents>
|
<contents>
|
||||||
<dir baseinstalldir="SeedDMS" name="/">
|
<dir baseinstalldir="SeedDMS" name="/">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user