diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 565b48f87..91c9adb71 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -725,6 +725,8 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { ?>
Sub workflow of '".$parentworkflow->getName()."'
"; } - echo "".getMLText('next_state').": | "; foreach($transitions as $transition) { $nextstate = $transition->getNextState(); - echo "".$nextstate->getName()." | "; + $docstatus = $nextstate->getDocumentStatus(); + echo "".$nextstate->getName()." | "; } echo "
"; + $allowedtransitions = array(); foreach($transitions as $transition) { echo " | "; if($latestContent->triggerWorkflowTransitionIsAllowed($user, $transition)) { $action = $transition->getAction(); print ""; + $allowedtransitions[] = $transition; } echo " | "; } @@ -895,9 +898,14 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { } } } - echo ""; - echo ""; $this->contentContainerEnd(); + echo ""; + echo "