call getLastWorkflowLog() instead od getWorkflowLog()

This commit is contained in:
Uwe Steinmann 2022-02-21 11:10:13 +01:00
parent f9721da684
commit 375c68e8de

View File

@ -80,8 +80,8 @@ $overallStatus = $version->getStatus();
if($ret = $version->triggerWorkflowTransition($user, $transition, $_POST["comment"])) {
/* $ret is the next state if it was entered otherwise it is just true */
if ($notifier) {
$wkflog = $version->getWorkflowLog($transition);
$notifier->sendTriggerWorkflowTransitionMail($version, $user, $wkflog ? $wkflog[0] : false);
$wkflog = $version->getLastWorkflowLog();
$notifier->sendTriggerWorkflowTransitionMail($version, $user, $wkflog);
if(is_object($ret)) {
$notifier->sendRequestWorkflowActionMail($version, $user, $transition);