FIX DataDifferencer needs to expliclty cast HTMLText values

This commit is contained in:
Daniel Hensby 2017-05-28 23:59:00 +01:00
parent eeb549faf3
commit 16a74bc8a9
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

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)));
}
}