Skip to content

Commit

Permalink
ENH Use class name instead of self
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jun 14, 2024
1 parent bf2e876 commit 32575f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UserSecurityReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 32575f4

Please sign in to comment.