Commit ecd9f5ec authored by Douwe Maan's avatar Douwe Maan

Add "No Milestone" option to issue milestone select

parent 09e712c0
......@@ -50,8 +50,10 @@ module IssuesHelper
end
def milestone_options(object)
options_from_collection_for_select(object.project.milestones.active,
'id', 'title', object.milestone_id)
milestones = object.project.milestones.active.to_a
milestones.unshift(Milestone::None)
options_from_collection_for_select(milestones, 'id', 'title', object.milestone_id)
end
def issue_box_class(item)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment