mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
send status changes to uploader of document
This commit is contained in:
parent
825186a046
commit
20e61d1691
|
@ -576,7 +576,7 @@ class SeedDMS_NotificationService {
|
|||
} /* }}} */
|
||||
|
||||
/**
|
||||
* This notification is sent when a new attachment is created.
|
||||
* This notification is sent when an attachment is deleted.
|
||||
*/
|
||||
public function sendDeleteFileMail($file, $user) { /* {{{ */
|
||||
$document = $file->getDocument();
|
||||
|
@ -814,10 +814,10 @@ class SeedDMS_NotificationService {
|
|||
$params['sitename'] = $this->settings->_siteName;
|
||||
$params['http_root'] = $this->settings->_httpRoot;
|
||||
|
||||
// if user is not owner send notification to owner
|
||||
if ($user->getID() != $document->getOwner()->getID() &&
|
||||
false === SeedDMS_Core_DMS::inList($document->getOwner(), $notifyList['users'])) {
|
||||
$this->toIndividual($user, $document->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
|
||||
// if user is not uploader of the version send notification to uploader
|
||||
if ($user->getID() != $content->getUser()->getID() &&
|
||||
false === SeedDMS_Core_DMS::inList($content->getUser(), $notifyList['users'])) {
|
||||
$this->toIndividual($user, $content->getUser(), $subject, $message, $params, SeedDMS_NotificationService::RECV_UPLOADER);
|
||||
}
|
||||
$this->toList($user, $notifyList["users"], $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
foreach ($notifyList["groups"] as $grp) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user