mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
remove empty data which sparkle a bug in RadioListMapper
This commit is contained in:
parent
cf576dca7b
commit
12fdfd81c4
@ -29,14 +29,6 @@ class DateAggregator implements AggregatorInterface
|
|||||||
|
|
||||||
private const DEFAULT_CHOICE = 'year';
|
private const DEFAULT_CHOICE = 'year';
|
||||||
|
|
||||||
private TranslatorInterface $translator;
|
|
||||||
|
|
||||||
public function __construct(
|
|
||||||
TranslatorInterface $translator
|
|
||||||
) {
|
|
||||||
$this->translator = $translator;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function addRole(): ?string
|
public function addRole(): ?string
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
@ -83,7 +75,6 @@ class DateAggregator implements AggregatorInterface
|
|||||||
'choices' => self::CHOICES,
|
'choices' => self::CHOICES,
|
||||||
'multiple' => false,
|
'multiple' => false,
|
||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'empty_data' => self::DEFAULT_CHOICE,
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
public function getFormDefaultData(): array
|
public function getFormDefaultData(): array
|
||||||
|
@ -67,7 +67,6 @@ class EmergencyFilter implements FilterInterface
|
|||||||
'choices' => self::CHOICES,
|
'choices' => self::CHOICES,
|
||||||
'multiple' => false,
|
'multiple' => false,
|
||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'empty_data' => self::DEFAULT_CHOICE,
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
public function getFormDefaultData(): array
|
public function getFormDefaultData(): array
|
||||||
|
@ -26,7 +26,7 @@ class ConfidentialFilter implements FilterInterface
|
|||||||
'is confidential' => true,
|
'is confidential' => true,
|
||||||
];
|
];
|
||||||
|
|
||||||
private const DEFAULT_CHOICE = false;
|
private const DEFAULT_CHOICE = 'false';
|
||||||
|
|
||||||
private TranslatorInterface $translator;
|
private TranslatorInterface $translator;
|
||||||
|
|
||||||
@ -66,7 +66,6 @@ class ConfidentialFilter implements FilterInterface
|
|||||||
'choices' => self::CHOICES,
|
'choices' => self::CHOICES,
|
||||||
'multiple' => false,
|
'multiple' => false,
|
||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'empty_data' => self::DEFAULT_CHOICE,
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
public function getFormDefaultData(): array
|
public function getFormDefaultData(): array
|
||||||
|
@ -26,7 +26,7 @@ class EmergencyFilter implements FilterInterface
|
|||||||
'is not emergency' => false,
|
'is not emergency' => false,
|
||||||
];
|
];
|
||||||
|
|
||||||
private const DEFAULT_CHOICE = false;
|
private const DEFAULT_CHOICE = 'false';
|
||||||
|
|
||||||
private TranslatorInterface $translator;
|
private TranslatorInterface $translator;
|
||||||
|
|
||||||
@ -66,7 +66,6 @@ class EmergencyFilter implements FilterInterface
|
|||||||
'choices' => self::CHOICES,
|
'choices' => self::CHOICES,
|
||||||
'multiple' => false,
|
'multiple' => false,
|
||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'empty_data' => self::DEFAULT_CHOICE,
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
public function getFormDefaultData(): array
|
public function getFormDefaultData(): array
|
||||||
|
Loading…
x
Reference in New Issue
Block a user