aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/public_body_controller.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb@mysociety.org>2012-01-09 11:15:06 +0000
committerSeb Bacon <seb@mysociety.org>2012-01-09 11:15:06 +0000
commitc8e10d0654e471c637c462ef80a0484c0a008343 (patch)
treebb804a0154751f441c6f786b06d2b43b5b3bc147 /app/controllers/public_body_controller.rb
parentdaf39e2287067b0fde275f674a5503dde7349b06 (diff)
parentc587009b42b7009cd04657ad33df514b38237ae5 (diff)
Merge branch 'release/0.5' of https://github.com/sebbacon/alaveteli into release/0.5
Diffstat (limited to 'app/controllers/public_body_controller.rb')
-rw-r--r--app/controllers/public_body_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/public_body_controller.rb b/app/controllers/public_body_controller.rb
index c31134641..94d1351db 100644
--- a/app/controllers/public_body_controller.rb
+++ b/app/controllers/public_body_controller.rb
@@ -185,7 +185,7 @@ class PublicBodyController < ApplicationController
def search_typeahead
# Since acts_as_xapian doesn't support the Partial match flag, we work around it
# by making the last work a wildcard, which is quite the same
- query = params[:q]
+ query = params[:query]
query = query.split(' ')
if query.last.nil? || query.last.strip.length < 3
@xapian_requests = nil