mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
fix(SubmittedFormField): Fix bug where FormattedValue isn't cast to HTMLFragment, which causes <br/> to appear in Email templates.
This commit is contained in:
parent
8ab6b0506a
commit
07ca22e729
@ -27,6 +27,10 @@ class SubmittedFormField extends DataObject
|
||||
'FormattedValue' => 'Value'
|
||||
];
|
||||
|
||||
private static $casting = [
|
||||
'FormattedValue' => 'HTMLFragment'
|
||||
];
|
||||
|
||||
private static $table_name = 'SubmittedFormField';
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user