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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-12 00:10:33 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-12 00:10:33 +0300
commit63fd08e6b429cd3af81cf63dfc0e5fc853d04086 (patch)
tree89f4a922331fb3162ee6e4e839196d41ac96e026 /lib/gitlab/project_search_results.rb
parentb54cbe2c737b3672737bb7cd1919a030cd75484c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/project_search_results.rb')
-rw-r--r--lib/gitlab/project_search_results.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/project_search_results.rb b/lib/gitlab/project_search_results.rb
index e52023c4612..2ed87f30b96 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)