summaryrefslogtreecommitdiff
path: root/app/models/dashboard_group_milestone.rb
diff options
context:
space:
mode:
authorblunceford <blunceford@gitlab.com>2019-07-16 15:33:35 -0600
committerblunceford <blunceford@gitlab.com>2019-07-16 15:33:35 -0600
commit6ff16f4bd0c229125e137cc5ce02f3faccbd20be (patch)
treec15a45904aae8123abc471373d16d68ce337951d /app/models/dashboard_group_milestone.rb
parentb8d876f1325c2bcb40350180c99fde289b46d3b9 (diff)
downloadgitlab-ce-6ff16f4bd0c229125e137cc5ce02f3faccbd20be.tar.gz
Fix bug with closed milestones in dashboard
Diffstat (limited to 'app/models/dashboard_group_milestone.rb')
-rw-r--r--app/models/dashboard_group_milestone.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/dashboard_group_milestone.rb b/app/models/dashboard_group_milestone.rb
index 74aa04ab7d0..ec52f1ed370 100644
--- a/app/models/dashboard_group_milestone.rb
+++ b/app/models/dashboard_group_milestone.rb
@@ -15,8 +15,7 @@ class DashboardGroupMilestone < GlobalMilestone
milestones = Milestone.of_groups(groups.select(:id))
.reorder_by_due_date_asc
.order_by_name_asc
- .active
milestones = milestones.search_title(params[:search_title]) if params[:search_title].present?
- milestones.map { |m| new(m) }
+ Milestone.filter_by_state(milestones, params[:state]).map { |m| new(m) }
end
end