Skip to content

Commit 3247cde

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 symfony#28469 to allow third-party form themes work properly.
1 parent d5a366f commit 3247cde

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Component/Form/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)