diff options
author | Stan Hu <stanhu@gmail.com> | 2015-10-06 09:57:13 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-10-07 07:21:50 -0700 |
commit | dfbbc80611fbdafe6f5ed809f98fc63987d104a6 (patch) | |
tree | 00a5f131e4b54c14162fc2a89cc2cca1a73512c9 /app/models/label.rb | |
parent | cc8c91a1183ebfc5bb252f5e7f3f09fc20546476 (diff) | |
download | gitlab-ce-dfbbc80611fbdafe6f5ed809f98fc63987d104a6.tar.gz |
Support filtering by "Any" milestone or issue and fix "No Milestone" and "No Label" filters
Closes #2619
Closes https://github.com/gitlabhq/gitlabhq/issues/9631
Diffstat (limited to 'app/models/label.rb')
-rw-r--r-- | app/models/label.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/label.rb b/app/models/label.rb index 4a22bd53400..14b544b3756 100644 --- a/app/models/label.rb +++ b/app/models/label.rb @@ -12,6 +12,9 @@ class Label < ActiveRecord::Base include Referable + # Represents a "No Label" state used for filtering Issues and Merge + # Requests that have no label assigned. + None = Struct.new(:title, :name).new('No Label', 'No Label') DEFAULT_COLOR = '#428BCA' |