diff options
author | Seb Bacon <seb@mysociety.org> | 2012-01-09 11:21:04 +0000 |
---|---|---|
committer | Seb Bacon <seb@mysociety.org> | 2012-01-09 11:21:04 +0000 |
commit | dff8433fcba0c5c1fdc040f705162f95162124e5 (patch) | |
tree | e61d5df91d716f97658d96f407f981ebba57c96b /app/controllers/public_body_controller.rb | |
parent | 4f8ff37a127d5f82e63f500a84d22e8b07ab8843 (diff) | |
parent | 322fb0a831a3da55421ea7f131785989d064bdb2 (diff) |
Merge branch 'release/0.5' into develop
Diffstat (limited to 'app/controllers/public_body_controller.rb')
-rw-r--r-- | app/controllers/public_body_controller.rb | 2 |
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 |