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:
3Dgoo 2019-01-28 09:06:12 +10:30 committed by GitHub
parent 2d310a38f4
commit a8e21b193f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);