From d94c057e20a4dfe8eb717ab6fc4c5301628b5fad Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Mon, 23 Dec 2024 12:10:49 -0600 Subject: [PATCH] Don't send a new project email if the manager, reviewer, and producer are all the same --- lib/Project.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Project.php b/lib/Project.php index 065b5267..4fb06f71 100644 --- a/lib/Project.php +++ b/lib/Project.php @@ -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;