Merge pull request #42 from silverstripe-security/patch/3.4/ss-2017-004

[SS-2017-004] FIX DataDifferencer doesnt correctly cast data
This commit is contained in:
Daniel Hensby 2017-05-29 00:41:59 +01:00 committed by GitHub
commit 2b72c0f73b

View File

@ -103,7 +103,7 @@ class DataDifferencer extends ViewableData {
// Show changes between the two, if any exist
if($fromValue != $toValue) {
$diffed->setField($field, Diff::compareHTML($fromValue, $toValue));
$diffed->setField($field, DBField::create_field('HTMLText', Diff::compareHTML($fromValue, $toValue)));
}
}