summaryrefslogtreecommitdiff
path: root/app/controllers/projects/commit_controller.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-03-30 20:34:14 -0600
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-05 17:44:14 +0100
commitfe26b8af94e8e12a66249e28e34196a4f8b987c4 (patch)
treed4a2978d3d28afdb45b69f177293167dd018717a /app/controllers/projects/commit_controller.rb
parentbb8cc946689bfafb1e3a65aa00b8e75fb8a5006b (diff)
downloadgitlab-ce-fe26b8af94e8e12a66249e28e34196a4f8b987c4.tar.gz
Correctly display multiple separate discussions on the same diff line
Diffstat (limited to 'app/controllers/projects/commit_controller.rb')
-rw-r--r--app/controllers/projects/commit_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/commit_controller.rb b/app/controllers/projects/commit_controller.rb
index 98cd4ce344a..d1558bdfba8 100644
--- a/app/controllers/projects/commit_controller.rb
+++ b/app/controllers/projects/commit_controller.rb
@@ -123,7 +123,7 @@ class Projects::CommitController < Projects::ApplicationController
@grouped_diff_discussions = commit.grouped_diff_discussions
@discussions = commit.discussions
- @notes = (@grouped_diff_discussions.values + @discussions).flat_map(&:notes)
+ @notes = (@grouped_diff_discussions.values.flatten + @discussions).flat_map(&:notes)
@notes = prepare_notes_for_rendering(@notes)
end