diff options
author | Robert Speicher <robert@gitlab.com> | 2018-01-05 20:54:29 +0300 |
---|---|---|
committer | Tiago Botelho <tiago@gitlab.com> | 2018-01-08 16:38:14 +0300 |
commit | 1da3b9dce82dec706863dc8d205d6dc365c19f88 (patch) | |
tree | 6367a4fc0ea2387f50edbce71675f56f947e22ff /app/controllers/groups/milestones_controller.rb | |
parent | a7de1343a980977cbcd14379a00f5fc9f4d6acd9 (diff) |
Merge branch 'milestones-finder-order-fix-10-1' into 'security-10-1'
Remove order param from the MilestoneFinder - 10.1 port
See merge request gitlab/gitlabhq!2265
(cherry picked from commit 5f0bb7928b40029a2ced18063c36697e3f8e80c2)
85c6530e Remove order param from the MilestoneFinder
Diffstat (limited to 'app/controllers/groups/milestones_controller.rb')
-rw-r--r-- | app/controllers/groups/milestones_controller.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/groups/milestones_controller.rb b/app/controllers/groups/milestones_controller.rb index 7a7bcb1a3d2..310aeb0f0d6 100644 --- a/app/controllers/groups/milestones_controller.rb +++ b/app/controllers/groups/milestones_controller.rb @@ -75,8 +75,6 @@ class Groups::MilestonesController < Groups::ApplicationController end def milestones - search_params = params.merge(group_ids: group.id) - milestones = MilestonesFinder.new(search_params).execute legacy_milestones = GroupMilestone.build_collection(group, group_projects, params) @@ -93,4 +91,8 @@ class Groups::MilestonesController < Groups::ApplicationController render_404 unless @milestone end + + def search_params + params.permit(:state).merge(group_ids: group.id) + end end |