Skip to content

Commit

Permalink
[Bromley] Echo field name has changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Dec 23, 2024
1 parent c58049c commit 2b08f91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion perllib/FixMyStreet/Cobrand/Bromley.pm
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ sub should_skip_sending_update {
my $echo = Integrations::Echo->new(%$cfg);
my $event = $echo->GetEvent($report->external_id);
if ($event->{ResolvedDate}) {
$report->update_extra_field({ name => 'Event_ID', value => $event->{Id} });
$report->update_extra_field({ name => 'Original_Event_ID_(if_applicable)', value => $event->{Id} });
$report->set_extra_metadata('open311_category_override' => REFERRED_TO_VEOLIA);
$report->set_extra_metadata('echo_report_reopened_with_comment' => $update->id);
$report->unset_extra_metadata('external_status_code');
Expand Down
2 changes: 1 addition & 1 deletion t/cobrand/bromley.t
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ subtest 'redirecting of reports between backends' => sub {
my $req = Open311->test_req_used;
my $c = CGI::Simple->new($req->content);
my $detail = $report->detail;
is $c->param('attribute[Event_ID]'), $event_id, 'old event ID included in attributes';
is $c->param('attribute[Original_Event_ID_(if_applicable)]'), $event_id, 'old event ID included in attributes';
like $c->param('description'), qr/Closed report has a new comment: comment on closed event\r\nBromley pkg-tcobrandbromleyt-bromley\@example.com\r\n$detail/, 'Comment on closed report included in new report description';
};

Expand Down

0 comments on commit 2b08f91

Please sign in to comment.