mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-18 14:56:13 +00:00
Set required to false for entitychoice filter field
This commit is contained in:
parent
e800ef85da
commit
62bee800cc
@ -89,12 +89,14 @@ final class EventListController extends AbstractController
|
||||
->addEntityChoice('event_types', 'event.filter.event_types', EventType::class, $types, [
|
||||
'choice_label' => fn (EventType $e) => $this->translatableStringHelper->localize($e->getName()),
|
||||
'expanded' => false,
|
||||
'required' => false,
|
||||
'attr' => ['class' => 'select2'],
|
||||
])
|
||||
->addUserPicker('responsables', 'event.filter.pick_responsable', ['multiple' => true, 'required' => false])
|
||||
->addEntityChoice('centers', 'event.filter.center', Center::class, $centers, [
|
||||
'choice_label' => fn (Center $c) => $c->getName(),
|
||||
'expanded' => false,
|
||||
'required' => false,
|
||||
'attr' => ['class' => 'select2'],
|
||||
]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user