diff options
author | Dave Arter <davea@mysociety.org> | 2018-02-20 11:51:05 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-02-20 12:18:03 +0000 |
commit | 3063317ecf65ef15fa0c563c933b7a2d38702126 (patch) | |
tree | 52190404509e3cd2d61101c9fb8ab1541a028487 /perllib/FixMyStreet/App/Controller/Report.pm | |
parent | d57cf05da497bc013a580e6895002d183ec31e2b (diff) |
Fix duplicate report selection
The underlying DOM structure returned from /report/xx/nearby.json had
changed, meaning the "Which report is it a duplicate of?" list on the
inspector form wasn't displaying any reports. This commit introduces a
template specifically for the nearby URL instead of overloading the
on_map_list_items template.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index ec0e6f886..5e85715a2 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -555,8 +555,8 @@ sub nearby_json : Private { } @$nearby; my $list_html = $c->render_fragment( - 'around/on_map_list_items.html', - { around_map => [], on_map => $nearby } + 'report/nearby.html', + { reports => $nearby } ); my $json = { pins => \@pins }; |