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
path: root/app
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2016-02-29 16:16:00 +0300
committerDouwe Maan <douwe@gitlab.com>2016-02-29 16:16:00 +0300
commita297e4404855bc79c53d5c1ca4df023a238c1798 (patch)
tree3d5462044238bbe2badce16fc918b68dad4c2b3e /app
parent9a7690f9e29fc31161e4ca94b4a44c035d84c02e (diff)
parent3d96bfaa8aa24f6ecdfb6c2e4189b01bb0ce1b51 (diff)
Merge branch 'issue_13621' into 'master'
Don't repeat labels listed on Labels tab. Fixes #13622 See merge request !2924
Diffstat (limited to 'app')
-rw-r--r--app/models/milestone.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/milestone.rb b/app/models/milestone.rb
index cbe65d70997..8f99e3bef9b 100644
--- a/app/models/milestone.rb
+++ b/app/models/milestone.rb
@@ -27,7 +27,7 @@ class Milestone < ActiveRecord::Base
belongs_to :project
has_many :issues
- has_many :labels, through: :issues
+ has_many :labels, -> { distinct.reorder('labels.title') }, through: :issues
has_many :merge_requests
has_many :participants, through: :issues, source: :assignee