Skip to content

Commit

Permalink
Merge pull request #31 from sheadawson/patch-1
Browse files Browse the repository at this point in the history
Fix: getIgnoredFields looking up old config class
  • Loading branch information
Nathan authored Sep 2, 2020
2 parents 123293e + a4ddd41 commit 66489cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension/ChangeRecordable.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function onBeforeDelete()

public function getIgnoredFields()
{
$ignored = Config::inst()->get('ChangeRecordable', 'ignored_fields');
$ignored = Config::inst()->get(ChangeRecordable::class, 'ignored_fields');
$class = $this->owner->ClassName;
if (isset($ignored[$class])) {
return array_combine($ignored[$class], $ignored[$class]);
Expand Down

0 comments on commit 66489cb

Please sign in to comment.