mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02: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) {
|
||||
$body = strip_tags($recipient->EmailBody) . "\n ";
|
||||
if(isset($emailData['Fields'])) {
|
||||
if(isset($emailData['Fields']) && !$recipient->HideFormData) {
|
||||
foreach($emailData['Fields'] as $Field) {
|
||||
$body .= $Field->Title .' - '. $Field->Value .' \n';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user