diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-06-29 09:18:53 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-06-29 09:18:53 +0300 |
commit | e46676a6fdfdbc77fd4c4813f917b252eded6d33 (patch) | |
tree | b3421d3f78e330f117e9ee8b02bef11b5ddaf81c /app | |
parent | d810e65a18a87c00c7193b2431fdf72546649768 (diff) | |
parent | 6a3f9ceff009c2bb93c005e9bfbf641aa45c1cb3 (diff) |
Merge branch 'ccr/maintain_labels' into 'master'
Keep label on issue when moving
Closes #46098
See merge request gitlab-org/gitlab-ce!20036
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) |