aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Tokens.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-08 11:11:03 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-08 11:11:03 +0000
commitee8d80ddaa0cf1cd82db8741b45692091fed5544 (patch)
treed9c2164c8601b31164ef43686542ffebc6a07980 /perllib/FixMyStreet/App/Controller/Tokens.pm
parent37ae388673a4898426ac2ea502b14ab2b6ca18e3 (diff)
Move to using problem.extra for internal notes, email confirmation, and public nature of photo.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Tokens.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Tokens.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Tokens.pm b/perllib/FixMyStreet/App/Controller/Tokens.pm
index b726ad825..740822876 100644
--- a/perllib/FixMyStreet/App/Controller/Tokens.pm
+++ b/perllib/FixMyStreet/App/Controller/Tokens.pm
@@ -56,8 +56,10 @@ sub confirm_problem : Path('/P') {
# For Zurich, email confirmation simply sets a flag, it does not change the
# problem state, log in, or anything else
if ($c->cobrand->moniker eq 'zurich') {
+ my $extra = { %{ $problem->extra || {} } };
+ $extra->{email_confirmed} = 1;
$problem->update( {
- anonymous => 0,
+ extra => $extra,
confirmed => \'ms_current_timestamp()',
} );