summaryrefslogtreecommitdiff
path: root/app/controllers/dashboard
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-10-14 12:08:58 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-10-14 12:08:58 +0000
commitc9ca178ba4c9a3e48d9d069f7d7486a29827cc61 (patch)
tree07a4f84921b80ff967d30229f0d887c152b9b1d8 /app/controllers/dashboard
parent6035fcc36ead3b415fa2422b0204a795a70f3e2f (diff)
downloadgitlab-ce-c9ca178ba4c9a3e48d9d069f7d7486a29827cc61.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/dashboard')
-rw-r--r--app/controllers/dashboard/labels_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/dashboard/labels_controller.rb b/app/controllers/dashboard/labels_controller.rb
index e3773f65744..b661efa12c0 100644
--- a/app/controllers/dashboard/labels_controller.rb
+++ b/app/controllers/dashboard/labels_controller.rb
@@ -11,8 +11,8 @@ class Dashboard::LabelsController < Dashboard::ApplicationController
def labels
finder_params = { project_ids: projects.select(:id) }
- labels = LabelsFinder.new(current_user, finder_params).execute
- GlobalLabel.build_collection(labels)
+ LabelsFinder.new(current_user, finder_params).execute
+ .select('DISTINCT ON (labels.title) labels.*')
end
end