From b4ac3ba141c49a75806508b457826d4009bfd7ed Mon Sep 17 00:00:00 2001 From: Christopher Joe Date: Fri, 20 May 2016 10:51:59 +1200 Subject: [PATCH] Switched Diff to the escaped variable created --- model/DataDifferencer.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/model/DataDifferencer.php b/model/DataDifferencer.php index 17bc68599..c62f09bb1 100644 --- a/model/DataDifferencer.php +++ b/model/DataDifferencer.php @@ -213,9 +213,7 @@ class DataDifferencer extends ViewableData { $changedFields->push(new ArrayData(array( 'Name' => $field, 'Title' => $base->fieldLabel($field), - 'Diff' => $this->fromRecord - ? Diff::compareHTML($this->fromRecord->$field, $this->toRecord->$field) - : "" . $this->toRecord->$field . "", + 'Diff' => $fieldDiff, 'From' => $this->fromRecord ? $this->fromRecord->$field : null, 'To' => $this->toRecord ? $this->toRecord->$field : null, )));