Fixed: [notificationMailer] invert 'if continue' condition inside foreach loop

This commit is contained in:
Mathieu Jaumotte 2023-08-24 15:14:47 +02:00 committed by Julie Lenaerts
parent 52c5807cd5
commit 2cec4a770e
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,6 @@
kind: Fixed
body: Fix who receive reply notification when adding comment (recipees must receive
it, and sender not).
time: 2023-08-24T15:20:38.472382872+02:00
custom:
Issue: "137"

View File

@ -46,7 +46,7 @@ class NotificationMailer
[$comment->getNotification()->getSender()] [$comment->getNotification()->getSender()]
) as $dest ) as $dest
) { ) {
if (null === $dest->getEmail() || $comment->getCreatedBy() !== $dest) { if (null !== $dest->getEmail() && $comment->getCreatedBy() === $dest) {
continue; continue;
} }
$email = new TemplatedEmail(); $email = new TemplatedEmail();