From 097eb6b649915f8c04335c06cfbee95dee774444 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 25 May 2010 03:15:54 +0000 Subject: [PATCH] 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 --- core/model/DataDifferencer.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/model/DataDifferencer.php b/core/model/DataDifferencer.php index cf29d6a1b..9bb1c564f 100644 --- a/core/model/DataDifferencer.php +++ b/core/model/DataDifferencer.php @@ -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) - : "" . $this->toRecord->$field . "" - ), + 'Diff' => $this->fromRecord + ? Diff::compareHTML($this->fromRecord->$field, $this->toRecord->$field) + : "" . $this->toRecord->$field . "", 'From' => $this->fromRecord ? $this->fromRecord->$field : null, 'To' => $this->toRecord ? $this->toRecord->$field : null, )));