aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2012-07-10 01:50:30 +0100
committerDave Whiteland <dave@mysociety.org>2012-07-10 01:50:30 +0100
commit7e6f8a128038523734f315ddb01df50f31bd91db (patch)
treebe6b285e999e39bf9998b100e008bb067cedc637 /perllib/FixMyStreet/App/Controller/Report
parenta76c4b311c899160d9d240acc4a0aedbf64baf96 (diff)
passing MM message number through service field, callback on view (needs client check to only trigger on rreports created this session)
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 5bf184ae6..3d356cc40 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -1001,6 +1001,11 @@ sub save_user_and_report : Private {
# Set unknown to DB unknown
$report->council( undef ) if $report->council eq '-1';
+ # if there is a Message Manager message ID, pass it back to the client view
+ if ($c->req->param('mm_msg_id')) {
+ $report->service( $c->req->param('mm_msg_id') );
+ }
+
# save the report;
$report->in_storage ? $report->update : $report->insert();