diff --git a/src/Admin/AliasAdmin.php b/src/Admin/AliasAdmin.php index 8ce41ff3..5a148ce1 100644 --- a/src/Admin/AliasAdmin.php +++ b/src/Admin/AliasAdmin.php @@ -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'; } @@ -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'); } /**