diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-01 09:53:57 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-02 12:56:17 +0000 |
commit | 4efc9d1bbea97c07c950f81773a03ff97c0755ff (patch) | |
tree | c59384bdbb44e99d21e7905c3827b91e492a5dad /perllib/FixMyStreet/App/Controller/Report.pm | |
parent | 64a24f1d9bf251cc57d363e7bf57d4218a5e2cb8 (diff) |
Remove shortlist form from inspect duplicate list.
This functionality isn't needed here, and causes an issue with the main
form submitting due to a form inside a form.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index 138098d5f..4c7931420 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -520,6 +520,9 @@ sub nearby_json : Private { my $p = $c->stash->{problem}; my $dist = 1; + # This is for the list template, this is a list on that page. + $c->stash->{page} = 'report'; + my $nearby = $c->model('DB::Nearby')->nearby( $c, $dist, [ $p->id ], 5, $p->latitude, $p->longitude, undef, [ $p->category ], undef ); |