summaryrefslogtreecommitdiff
path: root/app/models/milestone.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-02 14:10:43 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-02 14:10:43 +0100
commitf385988d1648e54218d68e02a25eaad048b04d0b (patch)
tree8ffe49e24eec194fc80df2e90a3ae3baf2758422 /app/models/milestone.rb
parenta895d5d3b2252cd962b8ea19d2c1092cbee7fca6 (diff)
downloadgitlab-ce-f385988d1648e54218d68e02a25eaad048b04d0b.tar.gz
Use "Any Label" and "Any Milestone" in selects rather than the ambiguous "Any" option
Diffstat (limited to 'app/models/milestone.rb')
-rw-r--r--app/models/milestone.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/milestone.rb b/app/models/milestone.rb
index c2642b75b8a..d8c7536cd31 100644
--- a/app/models/milestone.rb
+++ b/app/models/milestone.rb
@@ -16,9 +16,9 @@
class Milestone < ActiveRecord::Base
# Represents a "No Milestone" state used for filtering Issues and Merge
# Requests that have no milestone assigned.
- MilestoneStruct = Struct.new(:title, :name)
- None = MilestoneStruct.new('No Milestone', 'No Milestone')
- Any = MilestoneStruct.new('Any', '')
+ MilestoneStruct = Struct.new(:title, :name, :id)
+ None = MilestoneStruct.new('No Milestone', 'No Milestone', 0)
+ Any = MilestoneStruct.new('Any Milestone', '', -1)
include InternalId
include Sortable