diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-08-29 13:13:59 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-08-29 13:13:59 +0100 |
commit | b41edc7ae069e6071f7ff7223c1e60cca5e75e8c (patch) | |
tree | f2d7a1d218465247843036ccf8153fd8994afd30 /app/controllers/request_controller.rb | |
parent | eef876ff7ce15f1a15e6760a1f251c98d383cf4e (diff) |
Add tests & fixes for new search/filtering functionality
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 3c283baae..79b8e4816 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -134,6 +134,7 @@ class RequestController < ApplicationController @title = "View and search requests" sortby = "newest" @page = get_search_page_from_params if !@page # used in cache case, as perform_search sets @page as side effect + behavior_cache :tag => [@view, @page] do xapian_object = perform_search([InfoRequestEvent], query, sortby, 'request_collapse') @list_results = xapian_object.results.map { |r| r[:model] } |