summaryrefslogtreecommitdiff
path: root/app/serializers/build_details_entity.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-21 13:09:13 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-21 13:09:13 +0200
commiteaa935d77b824510a141ab10e9471107c516f902 (patch)
tree18ce85e77804913d728ed58bdf4cd02259d03a59 /app/serializers/build_details_entity.rb
parent70489d08b7e8b4bd0ba566da2ed0e417bef3ed3e (diff)
downloadgitlab-ce-eaa935d77b824510a141ab10e9471107c516f902.tar.gz
Fix target project merge request link on build pagefix/gb/fix-build-merge-request-link-to-fork-project
Diffstat (limited to 'app/serializers/build_details_entity.rb')
-rw-r--r--app/serializers/build_details_entity.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/serializers/build_details_entity.rb b/app/serializers/build_details_entity.rb
index 8ad5af1987c..743a08acefe 100644
--- a/app/serializers/build_details_entity.rb
+++ b/app/serializers/build_details_entity.rb
@@ -16,7 +16,8 @@ class BuildDetailsEntity < JobEntity
end
expose :path do |build|
- project_merge_request_path(build.project, build.merge_request)
+ project_merge_request_path(build.merge_request.project,
+ build.merge_request)
end
end