diff options
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/Update.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/Update.pm | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm index 2ca9245ad..2f1d88d08 100644 --- a/perllib/FixMyStreet/App/Controller/Report/Update.pm +++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm @@ -24,7 +24,7 @@ sub report_update : Path : Args(0) { $c->detach( '/page_error_404_not_found', [ _('Unknown problem ID') ] ) unless $c->req->param('id'); - $c->forward('setup_page') + $c->forward( '/report/load_problem_or_display_error', [ $c->req->param('id') ] ) && $c->forward('process_user') && $c->forward('process_update') && $c->forward('/report/new/process_photo') @@ -89,25 +89,6 @@ sub display_confirmation : Private { return 1; } -=head2 setup_page - -Setup things we need for later. - -=cut - -sub setup_page : Private { - my ( $self, $c ) = @_; - - my $problem = - $c->cobrand->problems->find( { id => $c->req->param('id') } ); - - return unless $problem; - - $c->stash->{problem} = $problem; - - return 1; -} - =head2 process_user Load user from the database or prepare a new one. |