diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-02-13 17:39:09 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-02-13 17:39:09 +0300 |
commit | 16908f9718820dd651faa61396fedb997d10eadd (patch) | |
tree | 0137c0898875262caa4f541883f84970ce20a22c /app/controllers | |
parent | de67c5972084847c1517d1cf9e347cdb39a1a1ae (diff) | |
parent | 9abbe3cc860f5838df76405e59830efdacb07047 (diff) |
Merge branch '26466-natural-sort-mrs' into 'master'
Group MR numbers on issue show page by project and namespace
Closes #26466
See merge request gitlab-org/gitlab-ce!8494
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/issues_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb index 515cb08f1fc..33fced99132 100644 --- a/app/controllers/projects/issues_controller.rb +++ b/app/controllers/projects/issues_controller.rb @@ -122,8 +122,7 @@ class Projects::IssuesController < Projects::ApplicationController end def referenced_merge_requests - @merge_requests = @issue.referenced_merge_requests(current_user) - @closed_by_merge_requests = @issue.closed_by_merge_requests(current_user) + @merge_requests, @closed_by_merge_requests = ::Issues::FetchReferencedMergeRequestsService.new(project, current_user).execute(issue) respond_to do |format| format.json do |