diff --git a/views/bootstrap/class.TriggerWorkflow.php b/views/bootstrap/class.TriggerWorkflow.php index 6753082bb..f8fc63ff8 100644 --- a/views/bootstrap/class.TriggerWorkflow.php +++ b/views/bootstrap/class.TriggerWorkflow.php @@ -79,7 +79,8 @@ $(document).ready(function() { $action = $transition->getAction(); $currentstate = $latestContent->getWorkflowState(); - $wkflog = array_shift($latestContent->getWorkflowLog()); + $wkflogs = $latestContent->getWorkflowLog(); + $wkflog = array_shift($wkflogs); $workflow = $latestContent->getWorkflow(); $msg = "The document is currently in state: ".$currentstate->getName()."
";