Milestone is closed only if all milestones are closed.
This commit is contained in:
parent
d9bc57d18e
commit
275a5281d5
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue