diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-02-20 11:24:32 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-02-20 11:24:32 +0000 |
commit | 834d18012ab64e340d06f539fee17d34e0cf7675 (patch) | |
tree | 6478756405efd2a2c04b3bc9d490d396c9112d0f /perllib/FixMyStreet/App/Controller/Report/Update.pm | |
parent | 7b227dea1532f3e68c369d8447611349e8cb44b6 (diff) | |
parent | 25d518e794b7d95525edaa9357adec48a4172c24 (diff) |
Merge branch '972-completion-adverts'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/Update.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/Update.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm index b97420238..f1a1aa821 100644 --- a/perllib/FixMyStreet/App/Controller/Report/Update.pm +++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm @@ -376,11 +376,8 @@ sub redirect_or_confirm_creation : Private { if ( $update->confirmed ) { $c->forward( 'update_problem' ); $c->forward( 'signup_for_alerts' ); - - my $report_uri = $c->cobrand->base_url_for_report( $update->problem ) . $update->problem->url; - $c->flash->{comment_created} = 1; - $c->res->redirect($report_uri); - $c->detach; + $c->stash->{template} = 'tokens/confirm_update.html'; + return 1; } # otherwise create a confirm token and email it to them. |