fix: [emailing] subject restored

- view template not having the subject var set defaulted the subject to null
pull/7287/head
iglocska 2021-04-01 17:01:27 +02:00
parent 75de46a6a7
commit 3bb471b2bc
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 3 additions and 1 deletions

View File

@ -81,7 +81,9 @@ class SendEmailTemplate
$text = $View->render($this->viewName);
// Template can change default subject.
$this->subject = $View->get('subject');
if ($View->get('subject')) {
$this->subject = $View->get('subject');
}
return new CakeEmailBody($text, $html);
}