Skip to content

Commit

Permalink
#10468 resolve: co authors receive several e-mails when a decision is…
Browse files Browse the repository at this point in the history
… notified (#10479)

Co-authored-by: simon <chevancs@ujf-grenoble.fr>
  • Loading branch information
forgive38 and simon authored Jan 28, 2025
1 parent bf3a533 commit 3fa0075
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions classes/decision/types/traits/NotifyAuthors.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ protected function sendAuthorEmail(Mailable $mailable, EmailData $email, User $e
continue;
}
$mailable->to($author->getEmail(), $author->getFullName());
Mail::send($mailable);
}
}
if ( sizeof($mailable->to) > 0 ) {
Mail::send($mailable);
}
}
}

Expand Down

0 comments on commit 3fa0075

Please sign in to comment.