summaryrefslogtreecommitdiff
path: root/app/controllers/groups/milestones_controller.rb
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-06-25 13:30:23 +0200
committerMarin Jankovski <marin@gitlab.com>2014-06-30 09:44:30 +0200
commite1afea777a6f0d2e28adc2765c9445cb10bd25f8 (patch)
tree948325c45d2bed91fa2f5e8b6a6217918ccb3fab /app/controllers/groups/milestones_controller.rb
parentaaba993352d65ad645215083cd6a4a46006f4b32 (diff)
downloadgitlab-ce-e1afea777a6f0d2e28adc2765c9445cb10bd25f8.tar.gz
Show title of milestone.
Diffstat (limited to 'app/controllers/groups/milestones_controller.rb')
-rw-r--r--app/controllers/groups/milestones_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/groups/milestones_controller.rb b/app/controllers/groups/milestones_controller.rb
index fc538105125..88a709024d4 100644
--- a/app/controllers/groups/milestones_controller.rb
+++ b/app/controllers/groups/milestones_controller.rb
@@ -3,5 +3,8 @@ class Groups::MilestonesController < ApplicationController
def index
@group = Group.find_by(path: params[:group_id])
+ project_ids = @group.projects
+ project_milestones = Milestone.where(project_id: project_ids)
+ @milestones = project_milestones
end
end