From fc437c2e77bb4c5e3df141a9519f24beae89cbb3 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 1 Feb 2021 13:15:14 +0100 Subject: [PATCH] get reviewers, approvers, workflow from controller --- op/op.AddDocument.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/op/op.AddDocument.php b/op/op.AddDocument.php index 7ba864f0c..6e4e8740b 100644 --- a/op/op.AddDocument.php +++ b/op/op.AddDocument.php @@ -426,6 +426,8 @@ for ($file_num=0;$file_numtoGroup($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_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";