Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-16 17:02:41 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-16 17:02:41 +0400
commitd7d8edf3cadb9a70db2f354324c18b306d89e91d (patch)
tree5d5bca551c2787500ce67ebf45a2c1aebb7e8644 /app
parent68a317808f90c0e5685dfd91abf5604f5012ab01 (diff)
Fix duplicating participants in milestone
Diffstat (limited to 'app')
-rw-r--r--app/controllers/milestones_controller.rb2
-rw-r--r--app/views/milestones/show.html.haml3
2 files changed, 2 insertions, 3 deletions
diff --git a/app/controllers/milestones_controller.rb b/app/controllers/milestones_controller.rb
index 135281bd28d..a17eefe98dd 100644
--- a/app/controllers/milestones_controller.rb
+++ b/app/controllers/milestones_controller.rb
@@ -32,7 +32,7 @@ class MilestonesController < ProjectResourceController
def show
@issues = @milestone.issues
- @users = @milestone.participants
+ @users = @milestone.participants.uniq
@merge_requests = @milestone.merge_requests
respond_to do |format|
diff --git a/app/views/milestones/show.html.haml b/app/views/milestones/show.html.haml
index 30539af48d8..1b95bb43433 100644
--- a/app/views/milestones/show.html.haml
+++ b/app/views/milestones/show.html.haml
@@ -87,7 +87,6 @@
%h6 Participants:
%div
- @users.each do |user|
- = link_to user do
- = link_to_member(@project, user)
+ = link_to_member(@project, user)
.clearfix