mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
BUGFIX: Include HideFormData field into send plain email - fix for #5211
This commit is contained in:
parent
8166f686d0
commit
826c6b5829
@ -584,7 +584,7 @@ JS
|
|||||||
|
|
||||||
if($recipient->SendPlain) {
|
if($recipient->SendPlain) {
|
||||||
$body = strip_tags($recipient->EmailBody) . "\n ";
|
$body = strip_tags($recipient->EmailBody) . "\n ";
|
||||||
if(isset($emailData['Fields'])) {
|
if(isset($emailData['Fields']) && !$recipient->HideFormData) {
|
||||||
foreach($emailData['Fields'] as $Field) {
|
foreach($emailData['Fields'] as $Field) {
|
||||||
$body .= $Field->Title .' - '. $Field->Value .' \n';
|
$body .= $Field->Title .' - '. $Field->Value .' \n';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user