[Form][DateTime] Propagate invalid_message & invalid_message parameters to date & time sub widgets
This commit is contained in:
parent
87123f6e1d
commit
ea4ae74011
@ -117,6 +117,8 @@ class DateTimeType extends AbstractType
|
|||||||
'empty_value',
|
'empty_value',
|
||||||
'required',
|
'required',
|
||||||
'translation_domain',
|
'translation_domain',
|
||||||
|
'invalid_message',
|
||||||
|
'invalid_message_parameters',
|
||||||
)));
|
)));
|
||||||
|
|
||||||
$timeOptions = array_intersect_key($options, array_flip(array(
|
$timeOptions = array_intersect_key($options, array_flip(array(
|
||||||
@ -128,6 +130,8 @@ class DateTimeType extends AbstractType
|
|||||||
'empty_value',
|
'empty_value',
|
||||||
'required',
|
'required',
|
||||||
'translation_domain',
|
'translation_domain',
|
||||||
|
'invalid_message',
|
||||||
|
'invalid_message_parameters',
|
||||||
)));
|
)));
|
||||||
|
|
||||||
if (null !== $options['date_widget']) {
|
if (null !== $options['date_widget']) {
|
||||||
|
Reference in New Issue
Block a user