aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorZarino Zappia <mail@zarino.co.uk>2016-10-13 14:22:27 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-05-31 16:55:17 +0100
commit6b9bd2aaeb12a9514619b433895469ede7f4d98b (patch)
tree860b6116bc9908e008d27da4ab8c42899302ff48 /perllib/FixMyStreet/App/Controller/Report.pm
parenta752a967ffd846e2ea6eb7f6a4789b0bf1a8dbf0 (diff)
Allow users to hide their name on reports/updates.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index b6978424f..368bbcf27 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -181,8 +181,10 @@ sub load_updates : Private {
@combined = map { $_->[1] } sort { $a->[0] <=> $b->[0] } @combined;
$c->stash->{updates} = \@combined;
- if ($c->sessionid && $c->flash->{alert_to_reporter}) {
- $c->stash->{alert_to_reporter} = 1;
+ if ($c->sessionid) {
+ foreach (qw(alert_to_reporter anonymized)) {
+ $c->stash->{$_} = $c->flash->{$_} if $c->flash->{$_};
+ }
}
return 1;