Skip to content

Commit

Permalink
Fix Filters in AliasAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Dec 29, 2023
1 parent 14851c6 commit dc86a1a
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions src/Admin/AliasAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class AliasAdmin extends Admin
{
use DomainGuesserAwareTrait;

protected function generateBaseRoutePattern(bool $isChildAdmin = false): string {
protected function generateBaseRoutePattern(bool $isChildAdmin = false): string
{
return 'alias';
}

Expand All @@ -45,23 +46,10 @@ protected function configureFormFields(FormMapper $form): void
protected function configureDatagridFilters(DatagridMapper $filter): void
{
$filter
->add('source', null, [
'show_filter' => true,
])
->add('user', null, [
'show_filter' => true,
])
->add('domain', null, [
'show_filter' => true,
])
->add('deleted', ChoiceFilter::class, [
'field_options' => [
'required' => false,
'choices' => [0 => 'No', 1 => 'Yes'],
],
'field_type' => ChoiceType::class,
'show_filter' => true,
]);
->add('source')
->add('user')
->add('domain')
->add('deleted');
}

/**
Expand Down

0 comments on commit dc86a1a

Please sign in to comment.