Include global labels when moving an issue to another project
This commit is contained in:
parent
fd0ba37276
commit
484f19ed1c
|
@ -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…
Reference in New Issue