Skip to content

Commit

Permalink
pkp#10214 fixed null notification issue
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Nov 25, 2024
1 parent 3209cce commit a549458
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jobs/email/EditorialReminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,11 @@ public function handle(): void
->from($context->getContactEmail(), $context->getLocalizedName(Locale::getLocale()))
->recipients([$editor])
->subject($emailTemplate->getLocalizedData('subject'))
->body($emailTemplate->getLocalizedData('body'))
->allowUnsubscribe($notification);
->body($emailTemplate->getLocalizedData('body'));

if ($notification) {
$mailable->allowUnsubscribe($notification);
}

Mail::send($mailable);

Expand Down

0 comments on commit a549458

Please sign in to comment.