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 ...@@ -50,8 +50,10 @@ module IssuesHelper
end end
def milestone_options(object) def milestone_options(object)
options_from_collection_for_select(object.project.milestones.active, milestones = object.project.milestones.active.to_a
'id', 'title', object.milestone_id) milestones.unshift(Milestone::None)
options_from_collection_for_select(milestones, 'id', 'title', object.milestone_id)
end end
def issue_box_class(item) 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