diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 17:28:14 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 17:28:14 -0200 |
commit | edef2d15f9f3b357074b73db3b26acc5b7ab2d5a (patch) | |
tree | f34732c08ca313ed623c4a21ef54fa8cfb179e41 | |
parent | 97762a5858864dd39aa744e19bc16b555832ebba (diff) | |
download | gitlab-ce-edef2d15f9f3b357074b73db3b26acc5b7ab2d5a.tar.gz |
Use LabelsFinder on Fogbuz importer
-rw-r--r-- | lib/gitlab/fogbugz_import/importer.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/fogbugz_import/importer.rb b/lib/gitlab/fogbugz_import/importer.rb index ce4d87a0741..65ee85ca5a9 100644 --- a/lib/gitlab/fogbugz_import/importer.rb +++ b/lib/gitlab/fogbugz_import/importer.rb @@ -133,7 +133,8 @@ module Gitlab updated_at: DateTime.parse(bug['dtLastUpdated']) ) - issue.update_attribute(:label_ids, project.labels.where(title: labels).pluck(:id)) + issue_labels = ::LabelsFinder.new(project.owner, project_id: project.id, title: labels).execute + issue.update_attribute(:label_ids, issue_labels.pluck(:id)) import_issue_comments(issue, comments) end |