mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
2b72c0f73b
@ -103,7 +103,7 @@ class DataDifferencer extends ViewableData {
|
|||||||
|
|
||||||
// Show changes between the two, if any exist
|
// Show changes between the two, if any exist
|
||||||
if($fromValue != $toValue) {
|
if($fromValue != $toValue) {
|
||||||
$diffed->setField($field, Diff::compareHTML($fromValue, $toValue));
|
$diffed->setField($field, DBField::create_field('HTMLText', Diff::compareHTML($fromValue, $toValue)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user