diff options
author | Dave Arter <davea@mysociety.org> | 2019-11-08 10:39:14 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-12-09 12:50:07 +0000 |
commit | d2f56b45fd26955bafe9c216809230b94afbf9c3 (patch) | |
tree | 15f46f0b4ebeb168e6464499b688bb65b254263c | |
parent | 39b90de5867b7de66c10b74556a961e31f454104 (diff) |
[TfL] Ensure tfl cobrand is used when sending reports to TfL
-rw-r--r-- | perllib/FixMyStreet/Cobrand/UK.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/UK.pm b/perllib/FixMyStreet/Cobrand/UK.pm index 2054b5df6..e44577bab 100644 --- a/perllib/FixMyStreet/Cobrand/UK.pm +++ b/perllib/FixMyStreet/Cobrand/UK.pm @@ -367,6 +367,10 @@ cobrand class is returned, otherwise the default FixMyStreet cobrand is used. sub get_body_handler_for_problem { my ($self, $row) = @_; + if ($row->to_body_named('TfL')) { + return FixMyStreet::Cobrand::TfL->new; + } + my @bodies = values %{$row->bodies}; my %areas = map { %{$_->areas} } grep { $_->name ne 'TfL' } @bodies; |