summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2017-05-16 13:29:20 +0300
committerValery Sizov <valery@gitlab.com>2017-05-16 16:26:03 +0300
commit1c0e4179d90c5f80fab41c38dc1e4c684b005a48 (patch)
treef162ab69f8727332241bed049c34a369aacdbf22 /lib/api/helpers.rb
parente261b4b8517ba6d5d5b082f1955836c945fd51fc (diff)
downloadgitlab-ce-fix_assignee_migration.tar.gz
[Multiple issue assignee] Support for both schemas to able to live migrate themfix_assignee_migration
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index 226a7ddd50e..fb100f3f26c 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -83,7 +83,9 @@ module API
end
def find_project_issue(iid)
- IssuesFinder.new(current_user, project_id: user_project.id).find_by!(iid: iid)
+ issue = IssuesFinder.new(current_user, project_id: user_project.id).find_by!(iid: iid)
+ issue.migrate_assignee
+ issue
end
def find_project_merge_request(iid)