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
def state
state = milestones.map { |milestone| milestone.state }
if state.count('active') == state.size
'active'
else
if state.count('closed') == state.size
'closed'
else
'active'
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