Skip to content

Commit dbbd077

Browse files
committed
cleaning up redirect route admin a bit
1 parent a1205ec commit dbbd077

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Admin/RedirectRouteAdmin.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
1312
namespace Symfony\Cmf\Bundle\RoutingBundle\Admin;
1413

1514
use Sonata\AdminBundle\Datagrid\DatagridMapper;
@@ -31,7 +30,7 @@ class RedirectRouteAdmin extends Admin
3130
protected function configureListFields(ListMapper $listMapper)
3231
{
3332
$listMapper
34-
->addIdentifier('id', 'text')
33+
->addIdentifier('path', 'text')
3534
;
3635
}
3736

@@ -44,14 +43,15 @@ protected function configureFormFields(FormMapper $formMapper)
4443
->add('routeName', 'text', array('required' => false))
4544
->add('uri', 'text', array('required' => false))
4645
->add('routeTarget', 'doctrine_phpcr_odm_tree', array('choice_list' => array(), 'required' => false, 'root_node' => $this->routeRoot))
47-
->end();
46+
->end()
47+
;
4848
}
4949

5050
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
5151
{
5252
$datagridMapper
5353
->add('name', 'doctrine_phpcr_nodename')
54-
;
54+
;
5555
}
5656

5757
public function setRouteRoot($routeRoot)
@@ -69,6 +69,6 @@ public function toString($object)
6969
return $object instanceof Route && $object->getId()
7070
? $object->getId()
7171
: $this->trans('link_add', array(), 'SonataAdminBundle')
72-
;
72+
;
7373
}
7474
}

0 commit comments

Comments
 (0)