Skip to content

Commit

Permalink
pkp#10468 resolve: co authors receive several e-mails when a decision…
Browse files Browse the repository at this point in the history
… is notified
  • Loading branch information
simon committed Sep 27, 2024
1 parent d12ad2b commit 23f3575
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 23f3575

Please sign in to comment.