aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mytton <chrismytton@gmail.com>2019-12-18 12:41:43 +0000
committerChris Mytton <chrism@mysociety.org>2020-02-20 14:01:10 +0000
commit8249148d457523c6720985391c5311e74669635f (patch)
treec56cca35ab1c8d519f4f00e109ae8c870fbaf769
parent431b27f866998e497f15c846d9c380818d54e9e8 (diff)
[Peterborough] Include service code in open311 updates
This is needed to route reports correctly when using the "Multi" backend.
-rw-r--r--perllib/FixMyStreet/Cobrand/Peterborough.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Peterborough.pm b/perllib/FixMyStreet/Cobrand/Peterborough.pm
index 829df5def..32386a470 100644
--- a/perllib/FixMyStreet/Cobrand/Peterborough.pm
+++ b/perllib/FixMyStreet/Cobrand/Peterborough.pm
@@ -70,6 +70,9 @@ sub open311_munge_update_params {
# Send the FMS problem ID with the update.
$params->{service_request_id_ext} = $comment->problem->id;
+
+ my $contact = $comment->problem->category_row;
+ $params->{service_code} = $contact->email;
}
1;