diff options
author | blunceford <blunceford@gitlab.com> | 2019-07-17 00:33:35 +0300 |
---|---|---|
committer | blunceford <blunceford@gitlab.com> | 2019-07-17 00:33:35 +0300 |
commit | 6ff16f4bd0c229125e137cc5ce02f3faccbd20be (patch) | |
tree | c15a45904aae8123abc471373d16d68ce337951d /app/models/dashboard_group_milestone.rb | |
parent | b8d876f1325c2bcb40350180c99fde289b46d3b9 (diff) |
Fix bug with closed milestones in dashboard
Diffstat (limited to 'app/models/dashboard_group_milestone.rb')
-rw-r--r-- | app/models/dashboard_group_milestone.rb | 3 |
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 |