aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Contact.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-08-09 18:33:52 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-08-09 18:33:52 +0100
commiteb9fdecc08f346b17c6cf9334a74fe13af69b716 (patch)
tree72f2ecada6ea6978a089dc36335d20dd023e8bd3 /perllib/FixMyStreet/App/Controller/Contact.pm
parenta4bfd8e348a5d589c7a3886cd5fe11bd12f17c6d (diff)
parent223c035294f0f3a79ae341349f8f78ffdf61ccd5 (diff)
Merge branch 'admin_abuse_additions'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Contact.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Contact.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Contact.pm b/perllib/FixMyStreet/App/Controller/Contact.pm
index 9d7051e2f..f28d37989 100644
--- a/perllib/FixMyStreet/App/Controller/Contact.pm
+++ b/perllib/FixMyStreet/App/Controller/Contact.pm
@@ -164,6 +164,10 @@ sub prepare_params_for_email : Private {
$c->stash->{problem}->id,
$problem_url, $admin_url
);
+
+ # flag this so it's automatically listed in the admin interface
+ $c->stash->{problem}->flagged(1);
+ $c->stash->{problem}->update;
}
return 1;