aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Body.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-10-28 14:28:50 +0000
committerDave Arter <davea@mysociety.org>2019-12-09 12:48:12 +0000
commitc78c63f25cc53332b182296163e9560849b1dd4a (patch)
tree0bd732f88f5a891b10ef45c9c71fefa5842f45c1 /perllib/FixMyStreet/DB/Result/Body.pm
parent534bb6f75db411b56a7d9c3e7c7b91b4480c6999 (diff)
Add cobrand hook for overriding areas on /reports wards
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Body.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/Body.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Body.pm b/perllib/FixMyStreet/DB/Result/Body.pm
index 29ce67204..05d6bfcab 100644
--- a/perllib/FixMyStreet/DB/Result/Body.pm
+++ b/perllib/FixMyStreet/DB/Result/Body.pm
@@ -193,11 +193,7 @@ sub first_area_children {
my $cobrand = $self->result_source->schema->cobrand;
- my $children = FixMyStreet::MapIt::call('area/children', $body_area->area_id,
- type => $cobrand->area_types_children,
- );
-
- return $children;
+ return $cobrand->fetch_area_children($body_area->area_id);
}
=head2 get_cobrand_handler