diff options
author | David Cabo <david@calibea.com> | 2011-09-23 02:50:41 +0200 |
---|---|---|
committer | David Cabo <david@calibea.com> | 2011-09-23 02:50:41 +0200 |
commit | b48df57d9243336d4b96e29c5587137eff3a3c67 (patch) | |
tree | 305d04ef9712e0af35fd346068164507c600423d /app/controllers/request_controller.rb | |
parent | 7ee0ae2e506d1b50132264744da3f46b346998e1 (diff) |
Remove invalid collate argument for public body searches
The existing bug wasn't catched by the tests, because it only fails when running in dev: otherwise all the classes are loaded before the search is done, and acts_as_xapian can find the provided 'request_collapse' argument, even if the PublicBody class doesn't define it, since all the init options end up together in acts_as_xapian.
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 06d8f15f4..e719a8898 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -39,7 +39,7 @@ class RequestController < ApplicationController if !params[:query].nil? query = params[:query] + '*' query = query.split(' ').join(' OR ') # XXX: HACK for OR instead of default AND! - @xapian_requests = perform_search([PublicBody], query, 'relevant', 'request_collapse', 5) + @xapian_requests = perform_search([PublicBody], query, 'relevant', nil, 5) end medium_cache end |