mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
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:
commit
adcf183469
6
.changes/unreleased/DX-20240110-132016.yaml
Normal file
6
.changes/unreleased/DX-20240110-132016.yaml
Normal 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: ""
|
@ -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()),
|
||||
|
Loading…
x
Reference in New Issue
Block a user