Skip to content

Commit

Permalink
Merge branch 'bromley-echo-reopen' into commercial-staging
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Sep 20, 2024
2 parents 8cc2da6 + 25a1d24 commit 00bb2e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions perllib/FixMyStreet/Cobrand/Bromley.pm
Original file line number Diff line number Diff line change
Expand Up @@ -429,12 +429,13 @@ sub open311_get_update_munging {
my $echo = $self->feature('echo');
$echo = Integrations::Echo->new(%$echo);
my $event = $echo->GetEvent($problem->external_id);
$echo->log($event);
my $data = Integrations::Echo::force_arrayref($event->{Data}, 'ExtensibleDatum');
my $notes;
my $notes = "";
foreach (@$data) {
$notes = $_->{Value} if $_->{DatatypeName} eq 'Veolia Notes';
}
$problem->set_extra_metadata(handover_notes => $notes) if $notes;
$problem->set_extra_metadata(handover_notes => $notes);
if (my $original_external_id = $problem->get_extra_metadata('original_bromley_external_id')) {
$problem->external_id($original_external_id);
$comment->problem_state(REFERRED_TO_BROMLEY);
Expand Down

0 comments on commit 00bb2e4

Please sign in to comment.