aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/Cobrand/UK.pm4
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;