From 07ca22e729d67393d312affdc9e14f6611cebe36 Mon Sep 17 00:00:00 2001 From: Jake Bentvelzen Date: Wed, 9 May 2018 16:31:40 +1000 Subject: [PATCH] fix(SubmittedFormField): Fix bug where FormattedValue isn't cast to HTMLFragment, which causes
to appear in Email templates. --- code/Model/Submission/SubmittedFormField.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/Model/Submission/SubmittedFormField.php b/code/Model/Submission/SubmittedFormField.php index 469de56..7085ae9 100755 --- a/code/Model/Submission/SubmittedFormField.php +++ b/code/Model/Submission/SubmittedFormField.php @@ -27,6 +27,10 @@ class SubmittedFormField extends DataObject 'FormattedValue' => 'Value' ]; + private static $casting = [ + 'FormattedValue' => 'HTMLFragment' + ]; + private static $table_name = 'SubmittedFormField'; /**