aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-01-27 14:53:34 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-01-27 16:06:05 +0000
commit32cc764609a304fb09718e91ca836c8788db1f51 (patch)
treef9babc5407885cebad665e5e5528e6230fe3f080 /perllib
parentb8083a462aebf542f6f39c4201e1f09248b7e0e7 (diff)
If app user logged in, perform alert signup.
Thanks to @jonkri for spotting.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index bab0f0fd0..2f03bf13b 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -149,6 +149,7 @@ sub report_new_ajax : Path('mobile') : Args(0) {
}
} );
if ( $report->confirmed ) {
+ $c->forward( 'create_reporter_alert' );
$c->stash->{ json_response } = { success => 1, report => $report->id };
} else {
$c->stash->{token_url} = $c->uri_for_email( '/P', $token->token );