From c7633c27671dba63e456dac6fd5043d44283a004 Mon Sep 17 00:00:00 2001 From: WouterJ Date: Sun, 1 May 2016 18:02:51 +0200 Subject: [PATCH] Revert #3709 --- Datagrid/Datagrid.php | 8 ++++---- Filter/Filter.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Datagrid/Datagrid.php b/Datagrid/Datagrid.php index c7a71778cb3..0f12dbc6b7b 100644 --- a/Datagrid/Datagrid.php +++ b/Datagrid/Datagrid.php @@ -126,15 +126,15 @@ public function buildPager() $this->formBuilder->add($filter->getFormName(), $type, $options); } - $this->formBuilder->add('_sort_by', 'Symfony\Component\Form\Extension\Core\Type\HiddenType'); + $this->formBuilder->add('_sort_by', 'hidden'); $this->formBuilder->get('_sort_by')->addViewTransformer(new CallbackTransformer( function ($value) { return $value; }, function ($value) { return $value instanceof FieldDescriptionInterface ? $value->getName() : $value; } )); - $this->formBuilder->add('_sort_order', 'Symfony\Component\Form\Extension\Core\Type\HiddenType'); - $this->formBuilder->add('_page', 'Symfony\Component\Form\Extension\Core\Type\HiddenType'); - $this->formBuilder->add('_per_page', 'Symfony\Component\Form\Extension\Core\Type\HiddenType'); + $this->formBuilder->add('_sort_order', 'hidden'); + $this->formBuilder->add('_page', 'hidden'); + $this->formBuilder->add('_per_page', 'hidden'); $this->form = $this->formBuilder->getForm(); $this->form->submit($this->values); diff --git a/Filter/Filter.php b/Filter/Filter.php index a60144ec4e7..b0f25ce1bb5 100644 --- a/Filter/Filter.php +++ b/Filter/Filter.php @@ -95,7 +95,7 @@ public function setOption($name, $value) */ public function getFieldType() { - return $this->getOption('field_type', 'Symfony\Component\Form\Extension\Core\Type\TextType'); + return $this->getOption('field_type', 'text'); } /**