diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-02-07 14:00:29 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-02-07 14:00:29 +0000 |
commit | 4f12309cc6c31bcd624a213df1d25943a41e3649 (patch) | |
tree | 59f5c504480f633d5efac1594a3da6763280e49b /app/helpers | |
parent | 99fceff4f9e98cc7cb725882abec6e5b7c9b0170 (diff) | |
parent | 831b9335ba438b72ed9b2e3be5a02add9eb87228 (diff) | |
download | gitlab-ce-4f12309cc6c31bcd624a213df1d25943a41e3649.tar.gz |
Merge branch '27632_fix_mr_widget_url' into 'master'
Fix MR widget url
Closes #27632
See merge request !8989
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/merge_requests_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/merge_requests_helper.rb b/app/helpers/merge_requests_helper.rb index 83ff898e68a..91b24b8bc29 100644 --- a/app/helpers/merge_requests_helper.rb +++ b/app/helpers/merge_requests_helper.rb @@ -20,8 +20,8 @@ module MergeRequestsHelper end def mr_widget_refresh_url(mr) - if mr && mr.source_project - merge_widget_refresh_namespace_project_merge_request_url(mr.source_project.namespace, mr.source_project, mr) + if mr && mr.target_project + merge_widget_refresh_namespace_project_merge_request_url(mr.target_project.namespace, mr.target_project, mr) else '' end |