diff options
author | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-08-18 11:24:44 +0100 |
---|---|---|
committer | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-08-26 14:30:11 +0100 |
commit | 66b847607acfb51bdcdb691414e6ab9a4db13c20 (patch) | |
tree | a41a4e77fc4fb2187ad2f4c988bc7f5c875643e3 /lib/api/helpers.rb | |
parent | fa5d9e6d52e09679b8a636a60e3b21a12bb6d463 (diff) | |
download | gitlab-ce-66b847607acfb51bdcdb691414e6ab9a4db13c20.tar.gz |
if issue is not valid we revert back to the old labels when updating19721-issues-created-through-api-do-not-notify-label-subscribers
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index dbad86d8926..da4b1bf9902 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -102,14 +102,6 @@ module API label || not_found!('Label') end - def get_label_ids(labels) - labels.split(",").map do |label_name| - user_project.labels.create_with(color: Label::DEFAULT_COLOR) - .find_or_create_by(title: label_name.strip) - .id - end - end - def find_project_issue(id) issue = user_project.issues.find(id) not_found! unless can?(current_user, :read_issue, issue) |