mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
Extra Space at line 1018
When a user chose the Plain Text option, the first field would have a blank space preceding the field name.
This commit is contained in:
parent
e6eefe9528
commit
dbb68258c5
@ -1015,7 +1015,7 @@ JS
|
|||||||
$this->extend('updateEmail', $email, $recipient, $emailData);
|
$this->extend('updateEmail', $email, $recipient, $emailData);
|
||||||
|
|
||||||
if($recipient->SendPlain) {
|
if($recipient->SendPlain) {
|
||||||
$body = strip_tags($recipient->EmailBody) . "\n ";
|
$body = strip_tags($recipient->EmailBody) . "\n";
|
||||||
if(isset($emailData['Fields']) && !$recipient->HideFormData) {
|
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