diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-02-05 11:15:05 +0100 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-02-07 07:54:59 +0100 |
commit | 831b9335ba438b72ed9b2e3be5a02add9eb87228 (patch) | |
tree | 31a0844315c9d12c06f9c088e016aa1f8b82ed5e /app/helpers/merge_requests_helper.rb | |
parent | 4d11903dcf818342c4bde1af198eac7a45460318 (diff) | |
download | gitlab-ce-831b9335ba438b72ed9b2e3be5a02add9eb87228.tar.gz |
Fix MR widget url
Diffstat (limited to 'app/helpers/merge_requests_helper.rb')
-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 |