Skip to content

Commit 04162b6

Browse files
committed
fix not displaying labels when value is false
1 parent 6336168 commit 04162b6

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
@@ -133,6 +133,11 @@ public function buildForm(FormBuilderInterface $builder, array $options)
133133
'invalid_message_parameters',
134134
)));
135135

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

0 commit comments

Comments
 (0)