mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
place colon after field name for better usability of plain text emails
This commit is contained in:
parent
83c2774c45
commit
d9dde81657
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user