aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-10-20 17:02:09 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-10-20 17:02:09 +0100
commit8e5853830f0fb65985881272b3b0178b37ac947b (patch)
tree3be466a2381a89c819002f91f350f341bdd14554 /perllib/FixMyStreet/DB
parent235502e48f2a94ac90c425a04cda09cb22ad78d2 (diff)
parent6e1d005093e6a97f2f8bd90def4aa794b2ca7cc3 (diff)
Merge branch 'reports-dashboard-councils'
Diffstat (limited to 'perllib/FixMyStreet/DB')
-rw-r--r--perllib/FixMyStreet/DB/Result/Body.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Body.pm b/perllib/FixMyStreet/DB/Result/Body.pm
index 6481d5cfc..da5c38168 100644
--- a/perllib/FixMyStreet/DB/Result/Body.pm
+++ b/perllib/FixMyStreet/DB/Result/Body.pm
@@ -156,12 +156,13 @@ sub areas {
}
sub first_area_children {
- my ( $self, $c ) = @_;
+ my ( $self ) = @_;
my $area_id = $self->body_areas->first->area_id;
+ my $cobrand = $self->result_source->schema->cobrand;
my $children = mySociety::MaPit::call('area/children', $area_id,
- type => $c->cobrand->area_types_children,
+ type => $cobrand->area_types_children,
);
return $children;