Commit bd7d0e7b authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Fix IssuableBaseService#find_or_create_label_ids

parent 756195a4ab2e
......@@ -88,7 +88,7 @@
return unless labels
params[:label_ids] = labels.split(',').map do |label_name|
label = available_labels.find_by(title: title).select(:id)
label = available_labels.find_by(title: label_name)
label ||= project.labels.create(title: label_name.strip, color: Label::DEFAULT_COLOR)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment