diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-01-16 11:13:38 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-01-16 14:45:18 +0000 |
commit | df174234d36460215e880aca68e0a4c6633f04e1 (patch) | |
tree | be45690d947a20faf25a2122748410ad611e6f41 /perllib/FixMyStreet/App/Controller/Around.pm | |
parent | 91ed9facc29eda616d2de9bb248df3347101a5be (diff) |
[TfL] Include non-open reports in dupe suggestions
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Around.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm index 49ff13999..fb3670fb7 100644 --- a/perllib/FixMyStreet/App/Controller/Around.pm +++ b/perllib/FixMyStreet/App/Controller/Around.pm @@ -329,12 +329,14 @@ sub nearby : Path { my ($self, $c) = @_; my $states = FixMyStreet::DB::Result::Problem->open_states(); - $c->forward('/report/_nearby_json', [ { + my $params = { latitude => $c->get_param('latitude'), longitude => $c->get_param('longitude'), categories => [ $c->get_param('filter_category') || () ], states => $states, - } ]); + }; + $c->cobrand->call_hook('around_nearby_filter', $params); + $c->forward('/report/_nearby_json', [ $params ]); } sub location_closest_address : Path('/ajax/closest') { |