From 32575f49152e67642aadbf0befdfc00375a1feae Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 5 Jun 2024 16:34:59 +1200 Subject: [PATCH] ENH Use class name instead of self --- src/UserSecurityReport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(