From 1132bd134ed4a86d2d15826b223e658eae0546b3 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 25 May 2021 09:02:59 +0200 Subject: [PATCH] fix strict php warning --- views/bootstrap/class.TriggerWorkflow.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()."
";