aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/public_body_controller.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-02-12 14:14:48 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-02-12 14:14:48 +1100
commitbc0408adcacd841d2c9ee9a6d9eb0bc5541be4c4 (patch)
tree5053ffba8fdb899e4baaad7a969351a6b61f88a8 /app/controllers/public_body_controller.rb
parentaeef1a20034b0ffb57f10d3bf2d5ed291bcf789c (diff)
Don't pass latest_status param to locale switching links. Fixes #789
Diffstat (limited to 'app/controllers/public_body_controller.rb')
-rw-r--r--app/controllers/public_body_controller.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/public_body_controller.rb b/app/controllers/public_body_controller.rb
index 49502cc2c..1bcc0145c 100644
--- a/app/controllers/public_body_controller.rb
+++ b/app/controllers/public_body_controller.rb
@@ -38,9 +38,7 @@ class PublicBodyController < ApplicationController
@searched_to_send_request = true
end
@view = params[:view]
- params[:latest_status] = @view
-
- query = make_query_from_params(params)
+ query = make_query_from_params(params.merge(:latest_status => @view))
query += " requested_from:#{@public_body.url_name}"
# Use search query for this so can collapse and paginate easily
# XXX really should just use SQL query here rather than Xapian.