From 57590fef864c524ccf0698d01e868a49dc6b16db Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 30 Apr 2013 18:14:05 +0200 Subject: [PATCH] show review/approval tab only if version has reviewer or approver --- views/bootstrap/class.ViewDocument.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index e1057ad9a..57fd819c9 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -121,6 +121,11 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { if($needwkflaction) { $this->infoMsg(getMLText('needs_workflow_action')); } + + $status = $latestContent->getStatus(); + $reviewStatus = $latestContent->getReviewStatus(); + $approvalStatus = $latestContent->getApprovalStatus(); + ?>