Skip to content

Commit

Permalink
Merge pull request #81 from creative-commoners/pulls/3.1/remove-self
Browse files Browse the repository at this point in the history
ENH Use class name instead of self
  • Loading branch information
GuySartorelli authored Jun 17, 2024
2 parents bf2e876 + 32575f4 commit 1287d59
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 1287d59

Please sign in to comment.