Commit 275a5281 authored by Marin Jankovski's avatar Marin Jankovski

Milestone is closed only if all milestones are closed.

parent d9bc57d1
...@@ -50,10 +50,10 @@ class GroupMilestone ...@@ -50,10 +50,10 @@ class GroupMilestone
def state def state
state = milestones.map { |milestone| milestone.state } state = milestones.map { |milestone| milestone.state }
if state.count('active') == state.size if state.count('closed') == state.size
'active'
else
'closed' 'closed'
else
'active'
end end
end end
......
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