mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fixed: [notificationMailer] invert 'if continue' condition inside foreach loop
This commit is contained in:
parent
52c5807cd5
commit
2cec4a770e
6
.changes/unreleased/Fixed-20230824-152038.yaml
Normal file
6
.changes/unreleased/Fixed-20230824-152038.yaml
Normal 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"
|
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user