Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/project_search_results.rb')
-rw-r--r--lib/gitlab/project_search_results.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitlab/project_search_results.rb b/lib/gitlab/project_search_results.rb
index e52023c4612..fb9447f9665 100644
--- a/lib/gitlab/project_search_results.rb
+++ b/lib/gitlab/project_search_results.rb
@@ -8,7 +8,8 @@ module Gitlab
@project = project
@repository_ref = repository_ref.presence
- super(current_user, query, [project], order_by: order_by, sort: sort, filters: filters)
+ # use the default filter for project searches since we are already limiting by a single project
+ super(current_user, query, [project], order_by: order_by, sort: sort, filters: filters, default_project_filter: true)
end
def objects(scope, page: nil, per_page: DEFAULT_PER_PAGE, preload_method: nil)
@@ -24,7 +25,7 @@ module Gitlab
when 'users'
users.page(page).per(per_page)
else
- super(scope, page: page, per_page: per_page, without_count: false)
+ super(scope, page: page, per_page: per_page, without_count: true)
end
end