diff options
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index 9041fa731..b2f476fec 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -169,15 +169,19 @@ sub format_problem_for_display : Private { $c->stash->{report_name} = $c->req->param('name'); if ( $c->req->param('submit_update' ) ) { + $c->stash->{form_name} = $c->req->param('name'); $c->stash->{update} = $c->req->param('update'); $c->stash->{email} = $c->req->param('rznvy'); $c->stash->{fixed} = $c->req->param('fixed') ? ' checked' : ''; $c->stash->{add_alert} = $c->req->param('add_alert') ? ' checked' : ''; } else { + if ( $c->user ) { + $c->stash->{form_name} = $c->user->name; + $c->stash->{email} = $c->user->email; + } $c->stash->{add_alert} = ' checked'; } - $c->forward('generate_map_tags'); $c->forward('generate_problem_meta'); |