mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-29 21:17:22 +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"])) {
|
if($ret = $version->triggerWorkflowTransition($user, $transition, $_POST["comment"])) {
|
||||||
/* $ret is the next state if it was entered otherwise it is just true */
|
/* $ret is the next state if it was entered otherwise it is just true */
|
||||||
if ($notifier) {
|
if ($notifier) {
|
||||||
$wkflogs = $version->getWorkflowLog($transition);
|
$wkflog = $version->getLastWorkflowLog();
|
||||||
$wkflog = array_pop($wkflogs);
|
$notifier->sendTriggerWorkflowTransitionMail($version, $user, $wkflog);
|
||||||
$notifier->sendTriggerWorkflowTransitionMail($version, $user, $wkflog ? $wkflog[0] : false);
|
|
||||||
|
|
||||||
if(is_object($ret)) {
|
if(is_object($ret)) {
|
||||||
$notifier->sendRequestWorkflowActionMail($version, $user, $transition);
|
$notifier->sendRequestWorkflowActionMail($version, $user, $transition);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user