mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
fix sending of notification mails to groups
This commit is contained in:
parent
d19288b7c3
commit
b66e87b72d
|
@ -723,7 +723,7 @@ class SeedDMS_NotificationService {
|
|||
}
|
||||
$this->toList($user, $notifyList["users"], $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
foreach ($notifyList["groups"] as $grp) {
|
||||
$notifier->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
}
|
||||
}
|
||||
} /* }}} */
|
||||
|
@ -879,7 +879,7 @@ class SeedDMS_NotificationService {
|
|||
if($obj->isType('user'))
|
||||
$this->toIndividual($user, $obj, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
elseif($obj->isType('group'))
|
||||
$notifier->toGroup($user, $obj, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
$this->toGroup($user, $obj, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
} /* }}} */
|
||||
|
||||
public function sendNewFolderNotifyMail($folder, $user, $obj) { /* {{{ */
|
||||
|
@ -896,7 +896,7 @@ class SeedDMS_NotificationService {
|
|||
if($obj->isType('user'))
|
||||
$this->toIndividual($user, $obj, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
elseif($obj->isType('group'))
|
||||
$notifier->toGroup($user, $obj, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
$this->toGroup($user, $obj, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
} /* }}} */
|
||||
|
||||
public function sendDeleteDocumentNotifyMail($document, $user, $obj) { /* {{{ */
|
||||
|
@ -914,7 +914,7 @@ class SeedDMS_NotificationService {
|
|||
if($obj->isType('user'))
|
||||
$this->toIndividual($user, $obj, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
elseif($obj->isType('group'))
|
||||
$notifier->toGroup($user, $obj, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
$this->toGroup($user, $obj, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
} /* }}} */
|
||||
|
||||
public function sendDeleteFolderNotifyMail($folder, $user, $obj) { /* {{{ */
|
||||
|
@ -931,7 +931,7 @@ class SeedDMS_NotificationService {
|
|||
if($obj->isType('user'))
|
||||
$this->toIndividual($user, $obj, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
elseif($obj->isType('group'))
|
||||
$notifier->toGroup($user, $obj, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
$this->toGroup($user, $obj, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
} /* }}} */
|
||||
|
||||
public function sendSubmittedReviewMail($content, $user, $reviewlog) { /* {{{ */
|
||||
|
@ -976,7 +976,7 @@ class SeedDMS_NotificationService {
|
|||
|
||||
$this->toList($user, $nl["users"], $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
foreach ($nl["groups"] as $grp)
|
||||
$notifier->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||
// $this->toIndividual($user, $content->getUser(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
|
||||
|
||||
} /* }}} */
|
||||
|
|
Loading…
Reference in New Issue
Block a user