Skip to content

Commit

Permalink
FIX, the solr search service injector dependency causes issues with c…
Browse files Browse the repository at this point in the history
…omparison

since it has public variables that are stored in an array.
  • Loading branch information
Nathan authored Dec 1, 2016
1 parent 11d94aa commit 2ff35f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/dataobjects/DataChangeRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ public function getCMSFields($params = null) {
$before = Object::create($this->ClassType, json_decode($this->Before, true), true);
$after = Object::create($this->ClassType, json_decode($this->After, true), true);
$diff = DataDifferencer::create($before, $after);

// The solr search service injector dependency causes issues with comparison, since it has public variables that are stored in an array.

$diff->ignoreFields(array('searchService'));
$diffed = $diff->diffedData();
$diffText = '';

Expand Down

0 comments on commit 2ff35f7

Please sign in to comment.