aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-05-02 13:26:03 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-05-02 13:26:03 +0100
commitcb71fc55419e369da93105b1d5af9879453eb241 (patch)
tree3f27c2ed655f0e7063b999da74b4ed8de841109e
parent02736ceabebcb6275aa10ceff746bc688733687a (diff)
Wildcards so it actually works.
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index 14537e5bb..198acade6 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -485,7 +485,7 @@ sub search_reports : Path('search_reports') {
];
} elsif ($search =~ /^area:(\d+)$/) {
$query = [
- 'me.areas' => { like => ",$1," }
+ 'me.areas' => { like => "%,$1,%" }
];
} else {
$query = [