diff options
author | Douwe Maan <douwe@gitlab.com> | 2016-02-29 16:16:00 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-03-01 14:13:04 +0300 |
commit | 9052086d7b6c46d148854932ac5ee71462936568 (patch) | |
tree | d6ce41d704c1e0cb40fa6d6af9fe530aad9105fb /app | |
parent | 5c8f6ba3ddc71f98e91b5679797e565e66f29b1b (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.rb | 2 |
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 |