mirror of https://github.com/MISP/MISP
fix: [emailing] subject restored
- view template not having the subject var set defaulted the subject to nullpull/7287/head
parent
75de46a6a7
commit
3bb471b2bc
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue