Skip to content

Commit f4b4672

Browse files
committed
forward false label option to nested types
This change does not fix any built-in Symfony form themes, but takes into account the changes made in #28469 to allow third-party form themes work properly.
1 parent 82436ba commit f4b4672

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Extension/Core/Type/DateTimeType.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ public function buildForm(FormBuilderInterface $builder, array $options)
134134
'invalid_message_parameters',
135135
)));
136136

137+
if (false === $options['label']) {
138+
$dateOptions['label'] = false;
139+
$timeOptions['label'] = false;
140+
}
141+
137142
if (null !== $options['date_widget']) {
138143
$dateOptions['widget'] = $options['date_widget'];
139144
}

0 commit comments

Comments
 (0)