Read about our upcoming Code of Conduct on this issue

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

Milestone is closed only if all milestones are closed.

parent 1ccd14b65b0f
......@@ -50,10 +50,10 @@ def percent_complete
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