From b66e87b72ddf01b655f9c5dc555cc5ee35b708a9 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 25 Aug 2021 15:05:35 +0200 Subject: [PATCH] fix sending of notification mails to groups --- inc/inc.ClassNotificationService.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inc/inc.ClassNotificationService.php b/inc/inc.ClassNotificationService.php index b760cc593..a252960ef 100644 --- a/inc/inc.ClassNotificationService.php +++ b/inc/inc.ClassNotificationService.php @@ -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); } /* }}} */