Skip to content

Commit

Permalink
Fix: getIgnoredFields looking up old config class
Browse files Browse the repository at this point in the history
  • Loading branch information
sheadawson authored Aug 28, 2020
1 parent 123293e commit a4ddd41
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 a4ddd41

Please sign in to comment.