diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-02-12 14:19:04 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-02-12 14:19:04 +1100 |
commit | 87beeb16db6e76bb28cc13e5382a81a8103c5cc8 (patch) | |
tree | 0f5434f5455cad3f5cca5945e01b9db1cc823f6c | |
parent | bc0408adcacd841d2c9ee9a6d9eb0bc5541be4c4 (diff) |
Don't pass latest_status param to locale switching links on view requests page
-rw-r--r-- | app/controllers/request_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 184441e06..6b8444f90 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -174,8 +174,7 @@ class RequestController < ApplicationController raise ActiveRecord::RecordNotFound.new("Sorry. No pages after #{MAX_RESULTS / PER_PAGE}.") end - params[:latest_status] = @view - query = make_query_from_params(params) + query = make_query_from_params(params.merge(:latest_status => @view)) @title = _("View and search requests") sortby = "newest" xapian_object = perform_search([InfoRequestEvent], query, sortby, 'request_collapse') |