fix(SubmittedFormField): Fix bug where FormattedValue isn't cast to HTMLFragment, which causes <br/> to appear in Email templates.

This commit is contained in:
Jake Bentvelzen 2018-05-09 16:31:40 +10:00
parent 8ab6b0506a
commit 07ca22e729

View File

@ -27,6 +27,10 @@ class SubmittedFormField extends DataObject
'FormattedValue' => 'Value'
];
private static $casting = [
'FormattedValue' => 'HTMLFragment'
];
private static $table_name = 'SubmittedFormField';
/**