Commit fd97b86e authored by Mario de la Ossa's avatar Mario de la Ossa

Backport changes to app/controllers/groups/milestones_controller.rb

parent 4dbd28ee
...@@ -76,12 +76,15 @@ class Groups::MilestonesController < Groups::ApplicationController ...@@ -76,12 +76,15 @@ class Groups::MilestonesController < Groups::ApplicationController
def milestones def milestones
milestones = MilestonesFinder.new(search_params).execute milestones = MilestonesFinder.new(search_params).execute
legacy_milestones = GroupMilestone.build_collection(group, group_projects, params)
@sort = params[:sort] || 'due_date_asc' @sort = params[:sort] || 'due_date_asc'
MilestoneArray.sort(milestones + legacy_milestones, @sort) MilestoneArray.sort(milestones + legacy_milestones, @sort)
end end
def legacy_milestones
GroupMilestone.build_collection(group, group_projects, params)
end
def milestone def milestone
@milestone = @milestone =
if params[:title] if params[:title]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment