diff --git a/src/UserSecurityReport.php b/src/UserSecurityReport.php index f9315cc..9271ae3 100644 --- a/src/UserSecurityReport.php +++ b/src/UserSecurityReport.php @@ -72,7 +72,7 @@ public function description() */ public function columns() { - $columns = self::config()->columns; + $columns = static::config()->columns; if (!Security::config()->get('login_recording')) { unset($columns['LastLoggedIn']); } @@ -138,7 +138,7 @@ public function canView($member = null) public function getReportField() { $gridField = parent::getReportField(); - $gridField->setModelClass(self::class); + $gridField->setModelClass(UserSecurityReport::class); $gridConfig = $gridField->getConfig(); $gridConfig->removeComponentsByType([GridFieldPrintButton::class, GridFieldExportButton::class]); $gridConfig->addComponents(