diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-01-20 12:51:07 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-01-20 13:10:25 +0000 |
commit | c4d726bacd492bd4281b9eddbdc29d3190444d3c (patch) | |
tree | 0910fa9e48c61be292148802ab159463b387e955 /perllib/FixMyStreet/App/Controller/Admin.pm | |
parent | d72a342f32661a099686b2392aed95391217026b (diff) |
Rename 'body_edit' admin endpoint to 'body'.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index 3e5a1a95a..de13a76de 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -427,7 +427,7 @@ sub update_contacts : Private { # Remove any others $c->stash->{body}->body_areas->search( { area_id => [ keys %current ] } )->delete; - $c->stash->{updated} = _('Configuration updated - contacts will be generated automatically later'); + $c->stash->{updated} = _('Values updated'); } } @@ -485,13 +485,13 @@ sub lookup_body : Private { } # This is for if the category name contains a '/' -sub body_edit_all : Path('body_edit') { +sub category_edit_all : Path('body') { my ( $self, $c, $body_id, @category ) = @_; my $category = join( '/', @category ); - $c->go( 'body_edit', [ $body_id, $category ] ); + $c->go( 'category_edit', [ $body_id, $category ] ); } -sub body_edit : Path('body_edit') : Args(2) { +sub category_edit : Path('body') : Args(2) { my ( $self, $c, $body_id, $category ) = @_; $c->stash->{body_id} = $body_id; @@ -1201,7 +1201,6 @@ sub set_allowed_pages : Private { 'config' => [ _('Configuration'), 8], 'user_edit' => [undef, undef], 'body' => [undef, undef], - 'body_edit' => [undef, undef], 'report_edit' => [undef, undef], 'update_edit' => [undef, undef], 'abuse_edit' => [undef, undef], |