From 7576bbf2986d76ab32e6f9ad790af4118c740dc1 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 28 Jul 2017 10:24:32 +0200 Subject: [PATCH] show workflows involved only if advanced workflow is on --- views/bootstrap/class.UsrMgr.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.UsrMgr.php b/views/bootstrap/class.UsrMgr.php index ebf2a387f..d31b4553b 100644 --- a/views/bootstrap/class.UsrMgr.php +++ b/views/bootstrap/class.UsrMgr.php @@ -107,8 +107,6 @@ $(document).ready( function() { echo "".getMLText('documents_with_notification')."".count($dnot)."\n"; $fnot = $seluser->getNotifications(T_FOLDER); echo "".getMLText('folders_with_notification')."".count($fnot)."\n"; - $workflows = $seluser->getWorkflowsInvolved(); - echo "".getMLText('workflows_involded')."".count($workflows)."\n"; if($workflowmode == "traditional") { $reviewStatus = $seluser->getReviewStatus(); @@ -135,6 +133,8 @@ $(document).ready( function() { } } if($workflowmode == 'advanced') { + $workflows = $seluser->getWorkflowsInvolved(); + echo "".getMLText('workflows_involded')."".count($workflows)."\n"; $workflowStatus = $seluser->getWorkflowStatus(); if($workflowStatus['u']) echo "".getMLText('pending_workflows')."".count($workflowStatus['u'])."\n";