aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-05-23 11:39:05 +0100
committerStruan Donald <struan@exo.org.uk>2011-05-23 11:39:05 +0100
commit9b12f95ffb23f7a1e45f47c0bf860ed348ddbf39 (patch)
tree8c4bcc807dc6fefc240facb2324ad6d8d068fa95 /perllib/FixMyStreet/App/Controller/Report.pm
parente58b6ceae179dcf576ba394209417c9e12fadb54 (diff)
Add a may show name publicly checkbox to updates form
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index b2f476fec..ee0d03b5b 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -178,6 +178,7 @@ sub format_problem_for_display : Private {
if ( $c->user ) {
$c->stash->{form_name} = $c->user->name;
$c->stash->{email} = $c->user->email;
+ $c->stash->{may_show_name} = ' checked' if $c->user->name;
}
$c->stash->{add_alert} = ' checked';
}