Merge branch 'adjust_field_required_behaviour_in_forms' into 'master'

Adjust form for activity type presence field, setting placeholder to false

See merge request Chill-Projet/chill-bundles!643
This commit is contained in:
2024-01-11 11:53:07 +00:00
2 changed files with 7 additions and 0 deletions

View File

@@ -183,6 +183,7 @@ class ActivityType extends AbstractType
$builder->add('attendee', EntityType::class, [
'label' => $activityType->getLabel('attendee'),
'required' => $activityType->isRequired('attendee'),
'placeholder' => false,
'expanded' => true,
'class' => ActivityPresence::class,
'choice_label' => fn (ActivityPresence $activityPresence) => $this->translatableStringHelper->localize($activityPresence->getName()),