Skip to content

Commit

Permalink
fix(SubmittedFormField): Fix bug where FormattedValue isn't cast to H…
Browse files Browse the repository at this point in the history
…TMLFragment, which causes <br/> to appear in Email templates.
  • Loading branch information
Jake Bentvelzen committed May 9, 2018
1 parent 8ab6b05 commit 07ca22e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/Model/Submission/SubmittedFormField.php
Expand Up @@ -27,6 +27,10 @@ class SubmittedFormField extends DataObject
'FormattedValue' => 'Value'
];

private static $casting = [
'FormattedValue' => 'HTMLFragment'
];

private static $table_name = 'SubmittedFormField';

/**
Expand Down

0 comments on commit 07ca22e

Please sign in to comment.