diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-01-13 17:23:02 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-01-13 17:23:02 +0000 |
commit | af18834097e2f49ba9c0e18b9dac42cbc6eb1ebd (patch) | |
tree | 9d6301576c5b0733d1a988860f9a08e979442484 /app/controllers/public_body_controller.rb | |
parent | 74f325825c3a5b94794253009a10f002dac3fa39 (diff) | |
parent | 1488f24e3f03fe46b222fa2fca4ae273d0b46ebf (diff) |
Merge branch '2051-back-to-search' into rails-3-develop
Diffstat (limited to 'app/controllers/public_body_controller.rb')
-rw-r--r-- | app/controllers/public_body_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/public_body_controller.rb b/app/controllers/public_body_controller.rb index e64644a1b..2e540d198 100644 --- a/app/controllers/public_body_controller.rb +++ b/app/controllers/public_body_controller.rb @@ -55,6 +55,8 @@ class PublicBodyController < ApplicationController @xapian_requests = nil end + flash.keep(:search_params) + @track_thing = TrackThing.create_track_for_public_body(@public_body) @feed_autodetect = [ { :url => do_track_url(@track_thing, 'feed'), :title => @track_thing.params[:title_in_rss], :has_json => true } ] @@ -349,6 +351,7 @@ class PublicBodyController < ApplicationController # 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[:query] + flash[:search_params] = params.slice(:query, :bodies, :page) @xapian_requests = perform_search_typeahead(query, PublicBody) render :partial => "public_body/search_ahead" end |