- check for workflow mode

This commit is contained in:
steinm 2013-02-02 15:56:35 +00:00
parent 9ae27c2537
commit 1e4d9518c5

View File

@ -37,6 +37,7 @@ class LetoDMS_View_MyDocuments extends LetoDMS_Bootstrap_Style {
$orderby = $this->params['orderby'];
$showInProcess = $this->params['showinprocess'];
$cachedir = $this->params['cachedir'];
$workflowmode = $this->params['workflowmode'];
$db = $dms->getDB();
$previewer = new LetoDMS_Preview_Previewer($cachedir, 40);
@ -55,6 +56,7 @@ class LetoDMS_View_MyDocuments extends LetoDMS_Bootstrap_Style {
exit;
}
if($workflowmode == 'traditional') {
// Get document list for the current user.
$reviewStatus = $user->getReviewStatus();
$approvalStatus = $user->getApprovalStatus();
@ -389,7 +391,7 @@ class LetoDMS_View_MyDocuments extends LetoDMS_Bootstrap_Style {
else printMLText("no_docs_to_look_at");
$this->contentContainerEnd();
}
// Get list of documents locked by current user
$queryStr = "SELECT `tblDocuments`.*, `tblDocumentLocks`.`userID` as `lockUser`, ".