[Form] Fixed DateType default options
This commit is contained in:
parent
779d3bbb8e
commit
6f56dfc0d6
@ -44,7 +44,7 @@ class DateType extends AbstractType
|
|||||||
// If $format is not in the allowed options, it's considered as the pattern of the formatter if it is a string
|
// If $format is not in the allowed options, it's considered as the pattern of the formatter if it is a string
|
||||||
if (!in_array($format, $allowedFormatOptionValues, true)) {
|
if (!in_array($format, $allowedFormatOptionValues, true)) {
|
||||||
if (is_string($format)) {
|
if (is_string($format)) {
|
||||||
$defaultOptions = array_merge($this->getDefaultOptions(), $options);
|
$defaultOptions = $this->getDefaultOptions();
|
||||||
|
|
||||||
$format = $defaultOptions['format'];
|
$format = $defaultOptions['format'];
|
||||||
$pattern = $options['format'];
|
$pattern = $options['format'];
|
||||||
|
Reference in New Issue
Block a user