]> source.dussan.org Git - redmine.git/commitdiff
Add params to Redmine::Search::Fetcher#initialize optional parameter (#23153).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 28 Jun 2016 19:08:04 +0000 (19:08 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 28 Jun 2016 19:08:04 +0000 (19:08 +0000)
Patch by okkez.

git-svn-id: http://svn.redmine.org/redmine/trunk@15583 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/search_controller.rb

index 2888a888912123715c555d46359ee47676debf60..cc1970ef1f9e63cc32a3f7edc1cf5e8f181e443e 100644 (file)
@@ -68,7 +68,7 @@ class SearchController < ApplicationController
     fetcher = Redmine::Search::Fetcher.new(
       @question, User.current, @scope, projects_to_search,
       :all_words => @all_words, :titles_only => @titles_only, :attachments => @search_attachments, :open_issues => @open_issues,
-      :cache => params[:page].present?
+      :cache => params[:page].present?, :params => params
     )
 
     if fetcher.tokens.present?