diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-09-28 16:17:41 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 14:58:25 -0200 |
commit | 484f19ed1c5c07cbf8ea26fab8b6759961fcf9ca (patch) | |
tree | 40398ff69d300755a65407b3b21f9170366c55c8 /app/services/issues/move_service.rb | |
parent | fd0ba37276f6246c4095c4879bf9e1186f7c5ad8 (diff) | |
download | gitlab-ce-484f19ed1c5c07cbf8ea26fab8b6759961fcf9ca.tar.gz |
Include global labels when moving an issue to another project
Diffstat (limited to 'app/services/issues/move_service.rb')
-rw-r--r-- | app/services/issues/move_service.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/services/issues/move_service.rb b/app/services/issues/move_service.rb index ab667456db7..a2a5f57d069 100644 --- a/app/services/issues/move_service.rb +++ b/app/services/issues/move_service.rb @@ -52,8 +52,12 @@ module Issues end def cloneable_label_ids - @new_project.labels - .where(title: @old_issue.labels.pluck(:title)).pluck(:id) + params = { + project_id: @new_project.id, + title: @old_issue.labels.pluck(:title) + } + + LabelsFinder.new(current_user, params).execute.pluck(:id) end def cloneable_milestone_id |