place colon after field name for better usability of plain text emails

This commit is contained in:
Florian Thoma 2015-04-12 09:26:26 +10:00
parent 83c2774c45
commit d9dde81657
2 changed files with 2 additions and 2 deletions

View File

@ -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";
}
}

View File

@ -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');