diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-23 12:26:18 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-23 12:28:28 +0100 |
commit | 98e23f576f1114d42f4b847e8bb57d090b19d633 (patch) | |
tree | 4ca4db476254fb7f9393ec2d54dc6648cf7c53b5 | |
parent | 2aa5ffad509f927ba83ab872e2cf0dd9575690b2 (diff) |
Default to show name.
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 2 | ||||
-rw-r--r-- | t/app/controller/report_updates.t | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index 6c14f33fb..b50325052 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -124,8 +124,8 @@ 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->{may_show_name} = ' checked'; $c->stash->{add_alert_checked} = ' checked'; } diff --git a/t/app/controller/report_updates.t b/t/app/controller/report_updates.t index 4dd1db737..92c0ac567 100644 --- a/t/app/controller/report_updates.t +++ b/t/app/controller/report_updates.t @@ -276,7 +276,7 @@ for my $test ( initial_values => { name => '', rznvy => '', - may_show_name => undef, + may_show_name => 1, add_alert => 1, photo => '', update => '', @@ -295,7 +295,7 @@ for my $test ( initial_values => { name => '', rznvy => '', - may_show_name => undef, + may_show_name => 1, add_alert => 1, photo => '', update => '', |