mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #1056 from purplespider/patch-1
Stops reply-to address being set to empty, if reply-to field value is empty
This commit is contained in:
commit
bc5689b55a
@ -359,7 +359,7 @@ JS
|
||||
if ($emailFrom && $emailFrom->exists()) {
|
||||
$submittedFormField = $submittedFields->find('Name', $recipient->SendEmailFromField()->Name);
|
||||
|
||||
if ($submittedFormField && is_string($submittedFormField->Value)) {
|
||||
if ($submittedFormField && $submittedFormField->Value && is_string($submittedFormField->Value)) {
|
||||
$email->setReplyTo(explode(',', $submittedFormField->Value));
|
||||
}
|
||||
} elseif ($recipient->EmailReplyTo) {
|
||||
|
Loading…
Reference in New Issue
Block a user