|
@@ -46,13 +46,13 @@ class DateTimeRangeType extends AbstractType
|
|
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
|
|
{
|
|
|
$choices = array(
|
|
|
- self::TYPE_BETWEEN => $this->translator->trans('label_date_type_between', array(), 'SonataAdminBundle'),
|
|
|
- self::TYPE_NOT_BETWEEN => $this->translator->trans('label_date_type_not_between', array(), 'SonataAdminBundle'),
|
|
|
+ self::TYPE_BETWEEN => $this->translator->trans('label_date_type_between', array(), 'SonataAdminBundle'),
|
|
|
+ self::TYPE_NOT_BETWEEN => $this->translator->trans('label_date_type_not_between', array(), 'SonataAdminBundle'),
|
|
|
);
|
|
|
|
|
|
$builder
|
|
|
->add('type', 'choice', array('choices' => $choices, 'required' => false))
|
|
|
- ->add('value', $options['field_type'], array('field_options' => $options['field_options']))
|
|
|
+ ->add('value', $options['field_type'], $options['field_options'])
|
|
|
;
|
|
|
}
|
|
|
|