diff options
-rw-r--r-- | perllib/FixMyStreet/Cobrand/IsleOfWight.pm | 2 | ||||
-rw-r--r-- | t/cobrand/isleofwight.t | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/IsleOfWight.pm b/perllib/FixMyStreet/Cobrand/IsleOfWight.pm index 462449d9b..ff7b23f2d 100644 --- a/perllib/FixMyStreet/Cobrand/IsleOfWight.pm +++ b/perllib/FixMyStreet/Cobrand/IsleOfWight.pm @@ -73,6 +73,8 @@ sub open311_munge_update_params { if ($comment->mark_fixed) { $params->{description} = "[The customer indicated that this issue had been fixed]\n\n" . $params->{description}; } + + $params->{description} = "FMS-Update: " . $params->{description}; } 1; diff --git a/t/cobrand/isleofwight.t b/t/cobrand/isleofwight.t index 2f5b02337..f4797366c 100644 --- a/t/cobrand/isleofwight.t +++ b/t/cobrand/isleofwight.t @@ -83,6 +83,7 @@ subtest "fixing passes along the correct message" => sub { my $id = $o->post_service_request_update($c); is $id, 248, 'correct update ID returned'; my $cgi = CGI::Simple->new($o->test_req_used->content); + like $cgi->param('description'), qr/^FMS-Update:/, 'FMS update prefix included'; unlike $cgi->param('description'), qr/The customer indicated that this issue had been fixed/, 'No fixed message included'; $c = $mech->create_comment_for_problem($p, $p->user, 'Name', 'Update text', 'f', 'confirmed', 'fixed - user', { confirmed => \'current_timestamp' }); @@ -91,7 +92,7 @@ subtest "fixing passes along the correct message" => sub { $id = $o->post_service_request_update($c); is $id, 248, 'correct update ID returned'; $cgi = CGI::Simple->new($o->test_req_used->content); - like $cgi->param('description'), qr/^\[The customer indicated that this issue had been fixed/, 'Fixed message included'; + like $cgi->param('description'), qr/^FMS-Update: \[The customer indicated that this issue had been fixed/, 'Fixed message included'; }; }; |