remove empty data which sparkle a bug in RadioListMapper

This commit is contained in:
2023-06-06 09:37:43 +02:00
parent cf576dca7b
commit 12fdfd81c4
4 changed files with 2 additions and 14 deletions

View File

@@ -29,14 +29,6 @@ class DateAggregator implements AggregatorInterface
private const DEFAULT_CHOICE = 'year';
private TranslatorInterface $translator;
public function __construct(
TranslatorInterface $translator
) {
$this->translator = $translator;
}
public function addRole(): ?string
{
return null;
@@ -83,7 +75,6 @@ class DateAggregator implements AggregatorInterface
'choices' => self::CHOICES,
'multiple' => false,
'expanded' => true,
'empty_data' => self::DEFAULT_CHOICE,
]);
}
public function getFormDefaultData(): array

View File

@@ -67,7 +67,6 @@ class EmergencyFilter implements FilterInterface
'choices' => self::CHOICES,
'multiple' => false,
'expanded' => true,
'empty_data' => self::DEFAULT_CHOICE,
]);
}
public function getFormDefaultData(): array