Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3247cde

Browse filesBrowse 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 d5a366f commit 3247cde
Copy full SHA for 3247cde

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed

‎src/Symfony/Component/Form/Extension/Core/Type/DateTimeType.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/Type/DateTimeType.php
+5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.