diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-06-18 09:40:47 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-06-18 09:40:47 +0100 |
commit | 3ae2f6adfdac6b46d2209575d77b0cb455ca223b (patch) | |
tree | d55ff57985a91553935d18196d7b6bbca5266e22 | |
parent | 041d730e186ae6398c9fc61446bc67373ace0ec8 (diff) |
[UK] Ignore TfL body in get_body_handler_for_problem.
-rw-r--r-- | perllib/FixMyStreet/Cobrand/UK.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/UK.pm b/perllib/FixMyStreet/Cobrand/UK.pm index f99f29eb4..f7b71b0ae 100644 --- a/perllib/FixMyStreet/Cobrand/UK.pm +++ b/perllib/FixMyStreet/Cobrand/UK.pm @@ -351,7 +351,7 @@ sub get_body_handler_for_problem { my ($self, $row) = @_; my @bodies = values %{$row->bodies}; - my %areas = map { %{$_->areas} } @bodies; + my %areas = map { %{$_->areas} } grep { $_->name ne 'TfL' } @bodies; my $cobrand = FixMyStreet::Cobrand->body_handler(\%areas); return $cobrand if $cobrand; |