Commit 7a8be270 authored by Dylan Griffith's avatar Dylan Griffith

Move search helper EE only method to ee/

parent d616b8c0
# frozen_string_literal: true
module SearchHelper
SEARCH_PERMITTED_PARAMS = [:search, :scope, :project_id, :group_id, :repository_ref, :snippets].freeze
def search_autocomplete_opts(term)
return unless current_user
......@@ -196,16 +198,6 @@ module SearchHelper
Sanitize.clean(str)
end
SEARCH_PERMITTED_PARAMS = [:search, :scope, :project_id, :group_id, :repository_ref, :snippets]
def revert_to_basic_search_filter_url
search_params = params
.permit(SEARCH_PERMITTED_PARAMS)
.merge(basic_search: true)
search_path(search_params)
end
def search_filter_link(scope, label, data: {}, search: {})
search_params = params
.merge(search)
......
......@@ -60,6 +60,14 @@ module EE
end
end
def revert_to_basic_search_filter_url
search_params = params
.permit(::SearchHelper::SEARCH_PERMITTED_PARAMS)
.merge(basic_search: true)
search_path(search_params)
end
private
def search_multiple_assignees?(type)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment