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.
This commit is contained in:
Christian Flothmann 2018-09-14 15:32:30 +02:00
parent d5a366faa1
commit 3247cdeea9

View File

@ -134,6 +134,11 @@ class DateTimeType extends AbstractType
'invalid_message_parameters',
)));
if (false === $options['label']) {
$dateOptions['label'] = false;
$timeOptions['label'] = false;
}
if (null !== $options['date_widget']) {
$dateOptions['widget'] = $options['date_widget'];
}