mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
050aff4798
|
@ -77,14 +77,17 @@ if(isset($GLOBALS['SEEDDMS_HOOKS']['triggerWorkflowTransition'])) {
|
|||
}
|
||||
|
||||
$overallStatus = $version->getStatus();
|
||||
if($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 */
|
||||
if ($notifier) {
|
||||
$wkflog = $version->getWorkflowLog($transition);
|
||||
$notifier->sendTriggerWorkflowTransitionMail($version, $user, $wkflog ? $wkflog[0] : false);
|
||||
|
||||
$notifier->sendRequestWorkflowActionMail($version, $user, $transition);
|
||||
if($overallStatus['status'] != $version->getStatus()['status']) {
|
||||
$notifier->sendChangedDocumentStatusMail($version, $user, $overallStatus["status"]);
|
||||
if(is_object($ret)) {
|
||||
$notifier->sendRequestWorkflowActionMail($version, $user, $transition);
|
||||
if($overallStatus['status'] != $version->getStatus()['status']) {
|
||||
$notifier->sendChangedDocumentStatusMail($version, $user, $overallStatus["status"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user