mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 02:21:55 -04:00
Don't send a new project email if the manager, reviewer, and producer are all the same
This commit is contained in:
parent
b7776503cd
commit
d94c057e20
1 changed files with 1 additions and 1 deletions
|
@ -389,7 +389,7 @@ final class Project{
|
|||
if($this->Status == Enums\ProjectStatusType::InProgress){
|
||||
// The manager is also the reviewer, just send one email.
|
||||
if($this->ManagerUserId == $this->ReviewerUserId){
|
||||
if($this->Manager->Email !== null){
|
||||
if($this->Manager->Email !== null && $this->Manager->Name != $this->ProducerName){
|
||||
$em = new Email();
|
||||
$em->From = ADMIN_EMAIL_ADDRESS;
|
||||
$em->To = $this->Manager->Email;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue