Skip to content

Commit

Permalink
Merge branch '3.1' into 3
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 17, 2024
2 parents 9df3d37 + 1287d59 commit 55842ba
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 55842ba

Please sign in to comment.