diff options
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Body.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Body.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Body.pm b/perllib/FixMyStreet/DB/Result/Body.pm index c04c117ae..37164c990 100644 --- a/perllib/FixMyStreet/DB/Result/Body.pm +++ b/perllib/FixMyStreet/DB/Result/Body.pm @@ -134,6 +134,7 @@ __PACKAGE__->rabx_column('extra'); use Moo; use namespace::clean; +use FixMyStreet::MapIt; with 'FixMyStreet::Roles::Translatable', 'FixMyStreet::Roles::Extra'; @@ -182,10 +183,9 @@ sub first_area_children { my $cobrand = $self->result_source->schema->cobrand; - my %params = ( type => $cobrand->area_types_children ); - $params{generation} = FixMyStreet->config('MAPIT_GENERATION') - if FixMyStreet->config('MAPIT_GENERATION'); - my $children = mySociety::MaPit::call('area/children', $body_area->area_id, %params); + my $children = FixMyStreet::MapIt::call('area/children', $body_area->area_id, + type => $cobrand->area_types_children, + ); return $children; } |