aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-04 21:15:58 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-05 08:00:42 +0100
commite8230e1df6fbb3d5db77dc16d5783742f17df3e8 (patch)
tree96d155d67c195276e886fdc962800bdda074cf09 /perllib/FixMyStreet/App/Controller/Report.pm
parentc15d06408eed6a29bce5b10a4cd8599b5b6aa37e (diff)
Don't put filter_category in URL if no categories.
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 72cb0814c..b31877839 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -452,10 +452,10 @@ sub inspect : Private {
if ($c->user->has_body_permission_to('planned_reports')) {
my $categories = join(',', @{ $c->user->categories });
my $params = {
- filter_category => $categories,
lat => $problem->latitude,
lon => $problem->longitude,
};
+ $params->{filter_category} = $categories if $categories;
$redirect_uri = $c->uri_for( "/around", $params );
}