mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Revert "FEATURE: Use tidied HTML in DataDifferencer"
This reverts commit a0d2f7b3e289d12dedcdbd02ae52eec3e6718340. (from r99848) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105537 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
593a87b2f2
commit
097eb6b649
@ -113,11 +113,9 @@ class DataDifferencer extends ViewableData {
|
||||
$changedFields->push(new ArrayData(array(
|
||||
'Name' => $field,
|
||||
'Title' => $base->fieldLabel($field),
|
||||
'Diff' => new SS_HTMLValue(
|
||||
$this->fromRecord
|
||||
? Diff::compareHTML($this->fromRecord->$field, $this->toRecord->$field)
|
||||
: "<ins>" . $this->toRecord->$field . "</ins>"
|
||||
),
|
||||
'Diff' => $this->fromRecord
|
||||
? Diff::compareHTML($this->fromRecord->$field, $this->toRecord->$field)
|
||||
: "<ins>" . $this->toRecord->$field . "</ins>",
|
||||
'From' => $this->fromRecord ? $this->fromRecord->$field : null,
|
||||
'To' => $this->toRecord ? $this->toRecord->$field : null,
|
||||
)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user