aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-17 15:50:07 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-17 16:43:21 +0100
commitd034f3c1447ea91cb4333365ce123d58deb2de0d (patch)
tree1c7e9eab5b32ecbc35bb4886ea45b4d84ee88578 /perllib/FixMyStreet/App/Controller/Report.pm
parent676d755848465c6fec01243fd6c7df7e249d5c2b (diff)
Refactor /around list code to share with others.
Both /reports and /my share an ID and a /reports/ajax function, use these also on /around (and share ajax/non-ajax code).
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index acc6f9a09..520efa4dc 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -504,7 +504,7 @@ sub nearby_json : Private {
);
my $json = { pins => \@pins };
- $json->{current} = $on_map_list_html if $on_map_list_html;
+ $json->{reports_list} = $on_map_list_html if $on_map_list_html;
my $body = encode_json($json);
$c->res->content_type('application/json; charset=utf-8');
$c->res->body($body);