aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-06-18 09:40:47 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-06-18 09:40:47 +0100
commit3ae2f6adfdac6b46d2209575d77b0cb455ca223b (patch)
treed55ff57985a91553935d18196d7b6bbca5266e22
parent041d730e186ae6398c9fc61446bc67373ace0ec8 (diff)
[UK] Ignore TfL body in get_body_handler_for_problem.
-rw-r--r--perllib/FixMyStreet/Cobrand/UK.pm2
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;