diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-01-09 10:27:57 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-01-09 10:27:57 +0000 |
commit | c587009b42b7009cd04657ad33df514b38237ae5 (patch) | |
tree | 867dbfee4227c9d4d5db6b0305a7450d9c470bd5 /app/controllers/public_body_controller.rb | |
parent | cf60b287890534fd5daf54639ace20c066b13d2a (diff) |
Make sure paging authority list works even when using typeahead search
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 |