aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/public_body_controller.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb@mysociety.org>2012-01-09 11:21:54 +0000
committerSeb Bacon <seb@mysociety.org>2012-01-09 11:21:54 +0000
commit57cc5eff8b5e3050e3d6a66f7167fc28af329163 (patch)
tree93e9a3749b124227fbf9e4ca393a23478513c4b9 /app/controllers/public_body_controller.rb
parent0015ed840ab01905cb3b25f7595bae6136b25c77 (diff)
parent322fb0a831a3da55421ea7f131785989d064bdb2 (diff)
Merge branch 'release/0.5' into wdtk
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