Skip to content
Snippets Groups Projects
Commit 275a5281 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Milestone is closed only if all milestones are closed.

parent d9bc57d1
No related branches found
No related tags found
No related merge requests found
Loading
@@ -50,10 +50,10 @@ class GroupMilestone
Loading
@@ -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
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment