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:
LenaertsJ 2024-01-11 11:53:07 +00:00
commit adcf183469
2 changed files with 7 additions and 0 deletions

View File

@ -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: ""

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()),