diff options
author | Chantal Rollison <crollison@gitlab.com> | 2018-06-20 07:41:23 -0700 |
---|---|---|
committer | Chantal Rollison <crollison@gitlab.com> | 2018-06-27 09:06:43 -0700 |
commit | 6a3f9ceff009c2bb93c005e9bfbf641aa45c1cb3 (patch) | |
tree | 8b2e545030bb05797fa0ef8c9452794455d70e13 /app | |
parent | 70bf08b5d34e71bb67d3a71a9f6aae553f0d9f4a (diff) | |
download | gitlab-ce-6a3f9ceff009c2bb93c005e9bfbf641aa45c1cb3.tar.gz |
Keep label on issue when moving
Diffstat (limited to 'app')
-rw-r--r-- | app/services/issues/move_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/issues/move_service.rb b/app/services/issues/move_service.rb index 78e79344c99..6e5c29a5c40 100644 --- a/app/services/issues/move_service.rb +++ b/app/services/issues/move_service.rb @@ -58,7 +58,8 @@ module Issues def cloneable_label_ids params = { project_id: @new_project.id, - title: @old_issue.labels.pluck(:title) + title: @old_issue.labels.pluck(:title), + include_ancestor_groups: true } LabelsFinder.new(current_user, params).execute.pluck(:id) |