diff --git a/.changes/unreleased/DX-20240110-132016.yaml b/.changes/unreleased/DX-20240110-132016.yaml new file mode 100644 index 000000000..443bf7a68 --- /dev/null +++ b/.changes/unreleased/DX-20240110-132016.yaml @@ -0,0 +1,6 @@ +kind: DX +body: Set placeholder to False for expanded EntityType form fields where required + is set to False. +time: 2024-01-10T13:20:16.232711478+01:00 +custom: + Issue: "" diff --git a/src/Bundle/ChillActivityBundle/Form/ActivityType.php b/src/Bundle/ChillActivityBundle/Form/ActivityType.php index 4e3b1eb8a..d322089c8 100644 --- a/src/Bundle/ChillActivityBundle/Form/ActivityType.php +++ b/src/Bundle/ChillActivityBundle/Form/ActivityType.php @@ -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()),