diff options
author | Adam Niedzielski <adamsunday@gmail.com> | 2016-10-20 17:40:24 +0300 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2016-10-20 17:40:24 +0300 |
commit | 23e81bfde879dfd116cb70cb8034d0fce21fffb6 (patch) | |
tree | 0ae05e5b9ebcc49de7f2d500f266354f1d5b3498 /app | |
parent | 2510345ee5f36c9cbe7088f7dce9402645c3fcf6 (diff) |
Ignore external issues when bulk assigning issues to author of merge request.
Fixes #23552
Diffstat (limited to 'app')
-rw-r--r-- | app/services/merge_requests/assign_issues_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/merge_requests/assign_issues_service.rb b/app/services/merge_requests/assign_issues_service.rb index f636e5fec4f..066efa1acc3 100644 --- a/app/services/merge_requests/assign_issues_service.rb +++ b/app/services/merge_requests/assign_issues_service.rb @@ -4,7 +4,7 @@ module MergeRequests @assignable_issues ||= begin if current_user == merge_request.author closes_issues.select do |issue| - !issue.assignee_id? && can?(current_user, :admin_issue, issue) + !issue.is_a?(ExternalIssue) && !issue.assignee_id? && can?(current_user, :admin_issue, issue) end else [] |