mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Allow form fields in email subjects
Allows form fields in email subjects using merge field the same as body insertion functionality.
This commit is contained in:
parent
2d310a38f4
commit
a8e21b193f
@ -364,10 +364,10 @@ JS
|
||||
if ($submittedFormField && trim($submittedFormField->Value)) {
|
||||
$email->setSubject($submittedFormField->Value);
|
||||
} else {
|
||||
$email->setSubject($recipient->EmailSubject);
|
||||
$email->setSubject(SSViewer::execute_string($recipient->EmailSubject, $mergeFields));
|
||||
}
|
||||
} else {
|
||||
$email->setSubject($recipient->EmailSubject);
|
||||
$email->setSubject(SSViewer::execute_string($recipient->EmailSubject, $mergeFields));
|
||||
}
|
||||
|
||||
$this->extend('updateEmail', $email, $recipient, $emailData);
|
||||
|
Loading…
Reference in New Issue
Block a user