diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-28 14:07:01 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-28 14:07:01 +0000 |
commit | d6f6125bd78a4aa6800ef8eb2f2f517966aec67a (patch) | |
tree | 1aeaa209605386b12247e474380dc4d7208e21d8 /perllib/FixMyStreet/App/Controller | |
parent | 266d8e40f710f394b49913c4ecbf198c7710503f (diff) | |
parent | 8bae7327bb636f46bda4eaded650d9f47050b60f (diff) |
Merge branch '2406-fix-admin-body-dropdown'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin/Bodies.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm b/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm index 8d3f0bb0d..56bc554e9 100644 --- a/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm +++ b/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm @@ -24,11 +24,11 @@ sub index : Path : Args(0) { my ( $self, $c ) = @_; if (my $body_id = $c->get_param('body')) { - return $c->res->redirect( $c->uri_for( 'body', $body_id ) ); + return $c->res->redirect( $c->uri_for_action('admin/bodies/edit', [ $body_id ] ) ); } if (!$c->user->is_superuser && $c->user->from_body && $c->cobrand->moniker ne 'zurich') { - return $c->res->redirect( $c->uri_for( 'body', $c->user->from_body->id ) ); + return $c->res->redirect( $c->uri_for_action('admin/bodies/edit', [ $c->user->from_body->id ] ) ); } $c->forward( '/auth/get_csrf_token' ); |