mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Avoids reply to address being set to empty, if reply to field value is empty
This commit is contained in:
parent
540bfbd743
commit
b01d296c42
@ -357,7 +357,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