aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r--app/controllers/request_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index 9f17532b8..346aaf384 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -908,8 +908,10 @@ class RequestController < ApplicationController
@query << "requested_from:#{ params[:requested_from] } "
end
+ @per_page = (params.fetch(:per_page) { 25 }).to_i
+
@query << params[:q]
- @xapian_requests = perform_search_typeahead(@query, InfoRequestEvent)
+ @xapian_requests = perform_search_typeahead(@query, InfoRequestEvent, @per_page)
render :partial => "request/search_ahead"
end