mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 17:44:56 +00:00
call getLastWorkflowLog() instead of getWorkflowLog()
This commit is contained in:
parent
830f0258df
commit
98936632b2
|
@ -80,9 +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) {
|
||||
$wkflogs = $version->getWorkflowLog($transition);
|
||||
$wkflog = array_pop($wkflogs);
|
||||
$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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user