Include global labels when moving an issue to another project

This commit is contained in:
Douglas Barbosa Alexandre 2016-09-28 16:17:41 -03:00
parent fd0ba37276
commit 484f19ed1c
1 changed files with 6 additions and 2 deletions

View File

@ -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