mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
fix type of recipient when send notification, remove old code
This commit is contained in:
parent
8018dc1a24
commit
42fdeaf915
|
@ -71,16 +71,6 @@ if($version->runSubWorkflow($subworkflow)) {
|
||||||
$nl = $document->getNotifyList();
|
$nl = $document->getNotifyList();
|
||||||
$folder = $document->getFolder();
|
$folder = $document->getFolder();
|
||||||
|
|
||||||
/*
|
|
||||||
$subject = "###SITENAME###: ".$document->getName()." - ".getMLText("run_subworkflow_email");
|
|
||||||
$message = getMLText("run_subwork_email")."\r\n";
|
|
||||||
$message .=
|
|
||||||
getMLText("document").": ".$document->getName()."\r\n".
|
|
||||||
getMLText("workflow").": ".$subworkflow->getName()."\r\n".
|
|
||||||
getMLText("current_state").": ".$version->getWorkflowState()->getName()."\r\n".
|
|
||||||
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() ."> ";
|
|
||||||
*/
|
|
||||||
|
|
||||||
$subject = "run_subworkflow_email_subject";
|
$subject = "run_subworkflow_email_subject";
|
||||||
$message = "run_subworkflow_email_body";
|
$message = "run_subworkflow_email_body";
|
||||||
$params = array();
|
$params = array();
|
||||||
|
@ -96,7 +86,7 @@ if($version->runSubWorkflow($subworkflow)) {
|
||||||
// Send notification to subscribers.
|
// Send notification to subscribers.
|
||||||
$notifier->toList($user, $nl["users"], $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
$notifier->toList($user, $nl["users"], $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||||
foreach ($nl["groups"] as $grp) {
|
foreach ($nl["groups"] as $grp) {
|
||||||
$notifier->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_APPROVER);
|
$notifier->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user