Fix form_type option in date filter types
@@ -52,7 +52,7 @@ class DateRangeType extends AbstractType
$builder
->add('type', 'choice', array('choices' => $choices, 'required' => false))
- ->add('value', 'sonata_type_date_range', array('field_options' => $options['field_options']))
+ ->add('value', $options['field_type'], array('field_options' => $options['field_options']))
;
}
@@ -52,7 +52,7 @@ class DateTimeRangeType extends AbstractType
- ->add('value', 'sonata_type_datetime_range', array('field_options' => $options['field_options']))
@@ -68,7 +68,7 @@ class DateTimeType extends AbstractType
- ->add('value', 'datetime', array_merge(array('required' => false), $options['field_options']))
+ ->add('value', $options['field_type'], array_merge(array('required' => false), $options['field_options']))
@@ -68,7 +68,7 @@ class DateType extends AbstractType
- ->add('value', 'date', array_merge(array('required' => false), $options['field_options']))