set document_id in params for notification message

This commit is contained in:
Uwe Steinmann 2023-08-30 15:46:17 +02:00
parent eb712f106f
commit dfc5ea37d4

View File

@ -169,6 +169,7 @@ class SeedDMS_NotificationService {
$message = "review_request_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->getVersion();
$params['comment'] = $document->getComment();
@ -190,6 +191,7 @@ class SeedDMS_NotificationService {
$message = "approval_request_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->getVersion();
$params['comment'] = $document->getComment();
@ -224,6 +226,7 @@ class SeedDMS_NotificationService {
$message = "review_request_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->getVersion();
$params['comment'] = $document->getComment();
@ -265,6 +268,7 @@ class SeedDMS_NotificationService {
$message = "approval_request_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->getVersion();
$params['comment'] = $document->getComment();
@ -307,6 +311,7 @@ class SeedDMS_NotificationService {
$message = "new_document_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_name'] = $folder->getName();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['username'] = $user->getFullName();
@ -338,6 +343,7 @@ class SeedDMS_NotificationService {
$message = "document_updated_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['username'] = $user->getFullName();
$params['comment'] = $document->getComment();
@ -408,6 +414,7 @@ class SeedDMS_NotificationService {
$message = "version_deleted_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['version'] = $version->getVersion();
$params['folder_path'] = $document->getFolder()->getFolderPathPlain();
$params['username'] = $user->getFullName();
@ -501,6 +508,7 @@ class SeedDMS_NotificationService {
$params = array();
$params['name'] = $file->getName();
$params['document'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_name'] = $folder->getName();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['username'] = $user->getFullName();
@ -532,6 +540,7 @@ class SeedDMS_NotificationService {
$message = "replace_content_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_name'] = $folder->getName();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['username'] = $user->getFullName();
@ -568,6 +577,7 @@ class SeedDMS_NotificationService {
$message = "removed_file_email_body";
$params = array();
$params['document'] = $document->getName();
$params['document_id'] = $document->getId();
$params['username'] = $user->getFullName();
$params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
$params['sitename'] = $this->settings->_siteName;
@ -588,6 +598,7 @@ class SeedDMS_NotificationService {
$message = "expiry_changed_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['username'] = $user->getFullName();
$params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
@ -619,6 +630,7 @@ class SeedDMS_NotificationService {
$message = "document_attribute_changed_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['attribute_name'] = $attribute->getAttributeDefinition()->getName();
$params['attribute_old_value'] = $oldattributes[$attrdefid]->getValue();
$params['attribute_new_value'] = isset($newattributes[$attrdefid]) ? $newattributes[$attrdefid]->getValue() : '';
@ -643,6 +655,7 @@ class SeedDMS_NotificationService {
$message = "document_attribute_changed_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['attribute_name'] = $dms->getAttributeDefinition($attrdefid)->getName();
$params['attribute_old_value'] = '';
$params['attribute_new_value'] = $attribute->getValue();
@ -723,6 +736,7 @@ class SeedDMS_NotificationService {
$message = "document_comment_changed_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['old_comment'] = $oldcomment;
$params['new_comment'] = $document->getComment();
@ -780,6 +794,7 @@ class SeedDMS_NotificationService {
$message = "version_comment_changed_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['version'] = $content->getVersion();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['old_comment'] = $oldcomment;
@ -809,6 +824,7 @@ class SeedDMS_NotificationService {
$message = "document_renamed_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['old_name'] = $oldname;
$params['folder_path'] = $folder->getFolderPathPlain();
$params['username'] = $user->getFullName();
@ -870,6 +886,7 @@ class SeedDMS_NotificationService {
$message = "document_moved_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['old_folder_path'] = $oldfolder->getFolderPathPlain();
$params['new_folder_path'] = $targetfolder->getFolderPathPlain();
$params['username'] = $user->getFullName();
@ -928,6 +945,7 @@ class SeedDMS_NotificationService {
$message = "document_transfered_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['newuser'] = $document->getOwner()->getFullName();
$params['olduser'] = $oldowner->getFullName();
$params['folder_path'] = $folder->getFolderPathPlain();
@ -956,6 +974,7 @@ class SeedDMS_NotificationService {
$message = "document_status_changed_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['status'] = getOverallStatusText($overallStatus["status"]);
$params['old_status'] = getOverallStatusText($oldstatus);
@ -1059,6 +1078,7 @@ class SeedDMS_NotificationService {
$message = "review_submit_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['version'] = $content->getVersion();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['status'] = getReviewStatusText($reviewlog["status"]);
@ -1090,6 +1110,7 @@ class SeedDMS_NotificationService {
$message = "approval_submit_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['version'] = $content->getVersion();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['status'] = getApprovalStatusText($approvelog["status"]);
@ -1121,6 +1142,7 @@ class SeedDMS_NotificationService {
$message = "approval_deletion_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->getVersion();
$params['comment'] = $content->getComment();
@ -1142,6 +1164,7 @@ class SeedDMS_NotificationService {
$message = "review_deletion_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->getVersion();
$params['comment'] = $content->getComment();
@ -1172,6 +1195,7 @@ class SeedDMS_NotificationService {
$message = "approval_request_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->getVersion();
$params['comment'] = $content->getComment();
@ -1202,6 +1226,7 @@ class SeedDMS_NotificationService {
$message = "review_request_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->getVersion();
$params['comment'] = $content->getComment();
@ -1320,6 +1345,7 @@ class SeedDMS_NotificationService {
$message = "transition_triggered_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['version'] = $content->getVersion();
$params['workflow'] = $workflow->getName();
$params['action'] = $transition->getAction()->getName();
@ -1361,6 +1387,7 @@ class SeedDMS_NotificationService {
$message = "request_workflow_action_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['version'] = $content->getVersion();
$params['workflow'] = $workflow->getName();
$params['folder_path'] = $folder->getFolderPathPlain();
@ -1407,6 +1434,7 @@ class SeedDMS_NotificationService {
$message = "rewind_workflow_email_body";
$params = array();
$params['name'] = $document->getName();
$params['document_id'] = $document->getId();
$params['version'] = $content->getVersion();
$params['workflow'] = $workflow->getName();
$params['folder_path'] = $folder->getFolderPathPlain();