aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Around.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-05-02 16:53:45 +0100
committerDave Arter <davea@mysociety.org>2019-06-04 14:54:27 +0100
commitf4b69185b8f9402ce71bec2fba527145af05af0e (patch)
tree982143c367e32aae3e8e423a09e9f35daefd4be5 /perllib/FixMyStreet/App/Controller/Around.pm
parent84d49bae300280f6169b9543657f8cfa8861643b (diff)
Don’t include non_public reports when searching by ref from front page
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Around.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm
index a09161494..203296c4d 100644
--- a/perllib/FixMyStreet/App/Controller/Around.pm
+++ b/perllib/FixMyStreet/App/Controller/Around.pm
@@ -416,7 +416,7 @@ sub lookup_by_ref : Private {
external_id => $ref
];
- my $problems = $c->cobrand->problems->search( $criteria );
+ my $problems = $c->cobrand->problems->search({ non_public => 0, -or => $criteria });
my $count = try {
$problems->count;