Permalink
Browse files

[Form] Fixed DateType when used with the intl extension disabled.

  • Loading branch information...
jakzal committed Jan 3, 2013
1 parent 33f223f commit aff0efaeb04fa23da0d0a291e37db26a38f6e0f2
Showing with 1 addition and 1 deletion.
  1. +1 −1 Extension/Core/Type/DateType.php
@@ -83,7 +83,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
// Only pass a subset of the options to children
$yearOptions['choices'] = $this->formatTimestamps($formatter, '/y+/', $this->listYears($options['years']));
$yearOptions['empty_value'] = $options['empty_value']['year'];
- $monthOptions['choices'] = $this->formatTimestamps($formatter, '/M+/', $this->listMonths($options['months']));
+ $monthOptions['choices'] = $this->formatTimestamps($formatter, '/[M|L]+/', $this->listMonths($options['months']));
$monthOptions['empty_value'] = $options['empty_value']['month'];
$dayOptions['choices'] = $this->formatTimestamps($formatter, '/d+/', $this->listDays($options['days']));
$dayOptions['empty_value'] = $options['empty_value']['day'];

0 comments on commit aff0efa

Please sign in to comment.