From 0852d10df4afddb1acba227796592be831a8aa83 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 19 May 2021 08:32:38 +0200 Subject: [PATCH] add version to document update mail, add stub for remove version mail --- inc/inc.ClassNotificationService.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/inc/inc.ClassNotificationService.php b/inc/inc.ClassNotificationService.php index 3bc65319f..edc06b04b 100644 --- a/inc/inc.ClassNotificationService.php +++ b/inc/inc.ClassNotificationService.php @@ -284,6 +284,7 @@ class SeedDMS_NotificationService { $params['folder_path'] = $folder->getFolderPathPlain(); $params['username'] = $user->getFullName(); $params['comment'] = $document->getComment(); + $params['version'] = $lc->getVersion(); $params['version_comment'] = $lc->getComment(); $params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID(); $params['sitename'] = $this->settings->_siteName; @@ -331,6 +332,15 @@ class SeedDMS_NotificationService { } } /* }}} */ + /** + * This notification is sent when a document version is deleted. + * Keep in mind that $document refers to a document which has just been + * deleted from the database, but all the data needed is still in the + * object. + */ + public function sendDeleteDocumentVersionMail($document, $user) { /* {{{ */ + } /* }}} */ + /** * This notification is sent when a new folder is created. */