mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-08 20:46:05 +00:00
check if workflow exists in sendRequestWorkflowActionMail()
This commit is contained in:
parent
a4276a42a9
commit
aadcbbd979
|
@ -1076,11 +1076,11 @@ class SeedDMS_NotificationService {
|
||||||
public function sendRequestWorkflowActionMail($content, $user, $transition=null) { /* {{{ */
|
public function sendRequestWorkflowActionMail($content, $user, $transition=null) { /* {{{ */
|
||||||
$document = $content->getDocument();
|
$document = $content->getDocument();
|
||||||
$folder = $document->getFolder();
|
$folder = $document->getFolder();
|
||||||
|
if(!($workflow = $content->getWorkflow()))
|
||||||
|
return;
|
||||||
if($transition) {
|
if($transition) {
|
||||||
$workflow = $transition->getWorkflow();
|
|
||||||
$state = $transition->getNextState();
|
$state = $transition->getNextState();
|
||||||
} else {
|
} else {
|
||||||
$workflow = $content->getWorkflow();
|
|
||||||
$state = $workflow->getInitState();
|
$state = $workflow->getInitState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user