diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-13 18:03:52 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 14:58:26 -0200 |
commit | 0dbb47f00ee7333bbe76ddda853511c9120e2ad6 (patch) | |
tree | 12e0660c7d3da67ffe54641177499ead6fe525ff /app | |
parent | cece77f273407da4a9ed66acda53e9ac4117dbaf (diff) | |
download | gitlab-ce-0dbb47f00ee7333bbe76ddda853511c9120e2ad6.tar.gz |
Fix IssuableBaseService#find_or_create_label_ids
Diffstat (limited to 'app')
-rw-r--r-- | app/services/issuable_base_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/issuable_base_service.rb b/app/services/issuable_base_service.rb index b3e4f8dcf27..deadf1fe283 100644 --- a/app/services/issuable_base_service.rb +++ b/app/services/issuable_base_service.rb @@ -88,7 +88,7 @@ class IssuableBaseService < BaseService 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) label.id |