diff options
author | Eagllus <rvanzon@gitlab.com> | 2018-10-26 14:43:28 +0300 |
---|---|---|
committer | Eagllus <rvanzon@gitlab.com> | 2018-10-26 14:43:28 +0300 |
commit | 3b70cf69188b9906098df5bd984e9337f16e1080 (patch) | |
tree | 5aa88597163100d29e2afb135c30cca8a0d7d58b /app/controllers/dashboard/milestones_controller.rb | |
parent | 0ff5b0f45361cf9fe622cc3265b943a999c14d0e (diff) |
Update MR based on Sean's feedback
Diffstat (limited to 'app/controllers/dashboard/milestones_controller.rb')
-rw-r--r-- | app/controllers/dashboard/milestones_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/dashboard/milestones_controller.rb b/app/controllers/dashboard/milestones_controller.rb index 8252a0f2511..3802aa5f40f 100644 --- a/app/controllers/dashboard/milestones_controller.rb +++ b/app/controllers/dashboard/milestones_controller.rb @@ -10,7 +10,7 @@ class Dashboard::MilestonesController < Dashboard::ApplicationController def index respond_to do |format| format.html do - @milestone_states = Milestone.states_count(@projects, @groups) + @milestone_states = Milestone.states_count(@projects.select(:id), @groups.select(:id)) @milestones = Kaminari.paginate_array(milestones).page(params[:page]) end format.json do |