aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Open311.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-12-13 12:39:03 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-12-15 00:11:06 +0000
commitde87d4217334114bc5f92552b29c0c4a59428ca5 (patch)
tree742af86906d9062f4639343d6ee74553bf1727c2 /perllib/FixMyStreet/App/Controller/Open311.pm
parentb715f69fc0a92e25761f124a3a05b7116a73c598 (diff)
Convert get_services to lookup body area_ids.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Open311.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Open311.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Open311.pm b/perllib/FixMyStreet/App/Controller/Open311.pm
index 54faf906a..b1e685c1c 100644
--- a/perllib/FixMyStreet/App/Controller/Open311.pm
+++ b/perllib/FixMyStreet/App/Controller/Open311.pm
@@ -168,8 +168,8 @@ sub get_services : Private {
"4326/$lon,$lat",
type => $area_types);
$categories = $categories->search( {
- body_id => [ keys %$all_councils ],
- } );
+ 'body.area_id' => [ keys %$all_councils ],
+ }, { join => 'body' } );
}
my @categories = $categories->search( undef, {