diff --git a/code/model/UserDefinedForm.php b/code/model/UserDefinedForm.php index 82e817b..5603c6d 100755 --- a/code/model/UserDefinedForm.php +++ b/code/model/UserDefinedForm.php @@ -1032,7 +1032,7 @@ JS $body = strip_tags($recipient->EmailBody) . "\n"; if(isset($emailData['Fields']) && !$recipient->HideFormData) { foreach($emailData['Fields'] as $Field) { - $body .= $Field->Title .' - '. $Field->Value ." \n"; + $body .= $Field->Title .': '. $Field->Value ." \n"; } } diff --git a/tests/UserDefinedFormControllerTest.php b/tests/UserDefinedFormControllerTest.php index cd63874..6b9f6d0 100644 --- a/tests/UserDefinedFormControllerTest.php +++ b/tests/UserDefinedFormControllerTest.php @@ -41,7 +41,7 @@ class UserDefinedFormControllerTest extends FunctionalTest { $this->assertEmailSent('nohtml@example.com', 'no-reply@example.com', 'Email Subject'); $nohtml = $this->findEmail('nohtml@example.com', 'no-reply@example.com', 'Email Subject'); - $this->assertContains('Basic Text Field - Basic Value', $nohtml['content'], 'Email contains no html'); + $this->assertContains('Basic Text Field: Basic Value', $nohtml['content'], 'Email contains no html'); // no data $this->assertEmailSent('nodata@example.com', 'no-reply@example.com', 'Email Subject');