mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
get workflow, reviewers, approvers from controller after update
This commit is contained in:
parent
27aefc26c9
commit
5a212cc784
|
@ -299,6 +299,8 @@ default:
|
||||||
// if ($user->getID() != $document->getOwner()->getID())
|
// if ($user->getID() != $document->getOwner()->getID())
|
||||||
// $notifier->toIndividual($user, $document->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
|
// $notifier->toIndividual($user, $document->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
|
||||||
|
|
||||||
|
/* Get workflow from controller in case it was modified in a hook */
|
||||||
|
$workflow = $controller->getParam('workflow');
|
||||||
if($workflow && $settings->_enableNotificationWorkflow) {
|
if($workflow && $settings->_enableNotificationWorkflow) {
|
||||||
$subject = "request_workflow_action_email_subject";
|
$subject = "request_workflow_action_email_subject";
|
||||||
$message = "request_workflow_action_email_body";
|
$message = "request_workflow_action_email_body";
|
||||||
|
@ -325,6 +327,11 @@ default:
|
||||||
|
|
||||||
if($settings->_enableNotificationAppRev) {
|
if($settings->_enableNotificationAppRev) {
|
||||||
/* Reviewers and approvers will be informed about the new document */
|
/* 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']) {
|
if($reviewers['i'] || $reviewers['g']) {
|
||||||
$subject = "review_request_email_subject";
|
$subject = "review_request_email_subject";
|
||||||
$message = "review_request_email_body";
|
$message = "review_request_email_body";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user