Skip to content
Snippets Groups Projects
Commit 484f19ed authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Include global labels when moving an issue to another project

parent fd0ba372
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment