mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
get reviewers, approvers, workflow from controller
This commit is contained in:
parent
37d3577603
commit
fc437c2e77
|
@ -426,6 +426,8 @@ for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
|
|||
$notifier->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
}
|
||||
|
||||
/* Get workflow from controller in case it was modified in a hook */
|
||||
$workflow = $controller->getParam('workflow');
|
||||
if($workflow && $settings->_enableNotificationWorkflow) {
|
||||
$subject = "request_workflow_action_email_subject";
|
||||
$message = "request_workflow_action_email_body";
|
||||
|
@ -452,6 +454,11 @@ for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
|
|||
|
||||
if($settings->_enableNotificationAppRev) {
|
||||
/* Reviewers and approvers will be informed about the new document */
|
||||
/* Get reviewers and approvers from controller in case it was
|
||||
* modified in a hook
|
||||
*/
|
||||
$reviewers = $controller->getParam('reviewers');
|
||||
$approvers = $controller->getParam('approvers');
|
||||
if($reviewers['i'] || $reviewers['g']) {
|
||||
$subject = "review_request_email_subject";
|
||||
$message = "review_request_email_body";
|
||||
|
|
Loading…
Reference in New Issue
Block a user