diff options
author | Chris Mytton <chrismytton@gmail.com> | 2019-12-18 12:41:43 +0000 |
---|---|---|
committer | Chris Mytton <chrism@mysociety.org> | 2020-02-20 14:01:10 +0000 |
commit | 8249148d457523c6720985391c5311e74669635f (patch) | |
tree | c56cca35ab1c8d519f4f00e109ae8c870fbaf769 | |
parent | 431b27f866998e497f15c846d9c380818d54e9e8 (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.pm | 3 |
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; |