summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorPaul Slaughter <pslaughter@gitlab.com>2018-09-26 08:28:50 +0000
committerPhil Hughes <me@iamphill.com>2018-09-26 08:28:50 +0000
commitf3901842493c58faba71ad0812bf3102790a1b9f (patch)
treef30d0f4c67e80ec8fd591fa43b0b9b59998423c7 /app/controllers
parentc7fcb01b8adf988e2e10e63979507d99bedba163 (diff)
downloadgitlab-ce-f3901842493c58faba71ad0812bf3102790a1b9f.tar.gz
Resolve "Commit details are not displayed when reviewing an MR commit by commit"
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/merge_requests/diffs_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/merge_requests/diffs_controller.rb b/app/controllers/projects/merge_requests/diffs_controller.rb
index 666e65b6c5e..3d9ade77467 100644
--- a/app/controllers/projects/merge_requests/diffs_controller.rb
+++ b/app/controllers/projects/merge_requests/diffs_controller.rb
@@ -23,7 +23,7 @@ class Projects::MergeRequests::DiffsController < Projects::MergeRequests::Applic
@diffs.write_cache
- render json: DiffsSerializer.new(current_user: current_user).represent(@diffs, additional_attributes)
+ render json: DiffsSerializer.new(current_user: current_user, project: @merge_request.project).represent(@diffs, additional_attributes)
end
def define_diff_vars