send notification to owner

This commit is contained in:
Uwe Steinmann 2021-08-30 16:01:54 +02:00
parent 0ac0ca5760
commit 45b51cb043

View File

@ -260,9 +260,9 @@ class SeedDMS_NotificationService {
foreach ($notifyList["groups"] as $grp) { foreach ($notifyList["groups"] as $grp) {
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION); $this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
} }
// if user is not owner send notification to owner /* if user is not owner send notification to owner */
// if ($user->getID() != $document->getOwner()->getID()) if ($user->getID() != $document->getOwner()->getID())
// $this->toIndividual($user, $document->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER); $this->toIndividual($user, $document->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
$this->sendRequestWorkflowActionMail($lc, $user); $this->sendRequestWorkflowActionMail($lc, $user);
@ -424,6 +424,11 @@ class SeedDMS_NotificationService {
foreach ($notifyList["groups"] as $grp) { foreach ($notifyList["groups"] as $grp) {
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION); $this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
} }
/* if user is not owner send notification to owner */
if ($user->getID() != $document->getOwner()->getID())
$this->toIndividual($user, $document->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
} /* }}} */ } /* }}} */
/** /**
@ -632,8 +637,8 @@ class SeedDMS_NotificationService {
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION); $this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
} }
// if user is not owner send notification to owner // if user is not owner send notification to owner
// if ($user->getID() != $folder->getOwner()->getID()) if ($user->getID() != $folder->getOwner()->getID())
// $notifier->toIndividual($user, $folder->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER); $this->toIndividual($user, $folder->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
} }
} /* }}} */ } /* }}} */
@ -714,8 +719,8 @@ class SeedDMS_NotificationService {
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION); $this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
} }
// if user is not owner send notification to owner // if user is not owner send notification to owner
// if ($user->getID() != $folder->getOwner()->getID()) if ($user->getID() != $folder->getOwner()->getID())
// $this->toIndividual($user, $folder->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER); $this->toIndividual($user, $folder->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
} }
} /* }}} */ } /* }}} */