aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Around.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-06-04 15:08:58 +0100
committerDave Arter <davea@mysociety.org>2019-06-04 15:08:58 +0100
commitf4cbb3b53941ae3cb2816d2b26bf3b6f9db0ca2a (patch)
treeaec402df92dc11e160063115af6b9555a7dd0361 /perllib/FixMyStreet/App/Controller/Around.pm
parent500d4fe948bae1ee5a2d4dab8820c1d0ea9424c2 (diff)
parent3139d214cdcb606c668793384559480a96819dfa (diff)
Merge branch 'hounslow-reviewed'
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;