From 99bd517e2a2a46aefd741b15ac94aca3f0b8e072 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 8 Jul 2015 06:51:15 +0200 Subject: [PATCH] list only documents to approve which have passed review previously all documents that need to be approved some time were listed. Even those documents which haven't passed review and cannot be approved currently. --- views/bootstrap/class.MyDocuments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.MyDocuments.php b/views/bootstrap/class.MyDocuments.php index 0f3c72abe..2abfbac7c 100644 --- a/views/bootstrap/class.MyDocuments.php +++ b/views/bootstrap/class.MyDocuments.php @@ -232,7 +232,7 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { foreach ($approvalStatus["indstatus"] as $st) { - if ( $st["status"]==0 && isset($docIdx[$st["documentID"]][$st["version"]])) { + if ( $st["status"]==0 && isset($docIdx[$st["documentID"]][$st["version"]]) && $docIdx[$st["documentID"]][$st["version"]]['status'] == S_DRAFT_APP) { $document = $dms->getDocument($st["documentID"]); if ($printheader){ @@ -268,7 +268,7 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { } foreach ($approvalStatus["grpstatus"] as $st) { - if (!in_array($st["documentID"], $iRev) && $st["status"]==0 && isset($docIdx[$st["documentID"]][$st["version"]]) && $docIdx[$st["documentID"]][$st["version"]]['owner'] != $user->getId()) { + if (!in_array($st["documentID"], $iRev) && $st["status"]==0 && isset($docIdx[$st["documentID"]][$st["version"]]) && $docIdx[$st["documentID"]][$st["version"]]['status'] == S_DRAFT_APP && $docIdx[$st["documentID"]][$st["version"]]['owner'] != $user->getId()) { $document = $dms->getDocument($st["documentID"]); if ($printheader){ print "";