aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-10-13 19:23:46 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-10-13 19:23:46 +0100
commitfbe159d78ce133cadf79645660f49ddf7bfbc569 (patch)
tree092cd7bbd7b39f141560e0c13580d157cb27f7df /perllib/FixMyStreet/Map.pm
parent8ab9812e6cd5f686f7ab4d9a9859e8be4456ccd0 (diff)
parenta5ef113e2cc3105da41cf5449b505db6fa336c59 (diff)
Merge branch 'issues/forcouncils/95-multi-select-list-filters'
Diffstat (limited to 'perllib/FixMyStreet/Map.pm')
-rw-r--r--perllib/FixMyStreet/Map.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Map.pm b/perllib/FixMyStreet/Map.pm
index 5272e3932..f7caf51d7 100644
--- a/perllib/FixMyStreet/Map.pm
+++ b/perllib/FixMyStreet/Map.pm
@@ -92,9 +92,9 @@ sub map_features {
my $around_limit = $c->cobrand->on_map_list_limit || undef;
my @around_args = @p{"min_lat", "max_lat", "min_lon", "max_lon", "interval"};
- my $on_map_all = $c->cobrand->problems_on_map->around_map( @around_args, undef, $p{category}, $p{states} );
+ my $on_map_all = $c->cobrand->problems_on_map->around_map( @around_args, undef, $p{categories}, $p{states} );
my $on_map_list = $around_limit
- ? $c->cobrand->problems_on_map->around_map( @around_args, $around_limit, $p{category}, $p{states} )
+ ? $c->cobrand->problems_on_map->around_map( @around_args, $around_limit, $p{categories}, $p{states} )
: $on_map_all;
my $dist = FixMyStreet::Gaze::get_radius_containing_population( $p{latitude}, $p{longitude} );
@@ -102,7 +102,7 @@ sub map_features {
my $limit = 20;
my @ids = map { $_->id } @$on_map_list;
my $nearby = $c->model('DB::Nearby')->nearby(
- $c, $dist, \@ids, $limit, @p{"latitude", "longitude", "interval", "category", "states"}
+ $c, $dist, \@ids, $limit, @p{"latitude", "longitude", "interval", "categories", "states"}
);
return ( $on_map_all, $on_map_list, $nearby, $dist );