diff options
-rw-r--r-- | app/models/group_milestone.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/group_milestone.rb b/app/models/group_milestone.rb index 013f8db00a7..33915313789 100644 --- a/app/models/group_milestone.rb +++ b/app/models/group_milestone.rb @@ -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 |