mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +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) { /* {{{ */
|
||||
$document = $content->getDocument();
|
||||
$folder = $document->getFolder();
|
||||
if(!($workflow = $content->getWorkflow()))
|
||||
return;
|
||||
if($transition) {
|
||||
$workflow = $transition->getWorkflow();
|
||||
$state = $transition->getNextState();
|
||||
} else {
|
||||
$workflow = $content->getWorkflow();
|
||||
$state = $workflow->getInitState();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user