summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2018-08-25 22:29:27 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2019-01-31 13:49:49 +0100
commiteed79986c9f280ea5ccdc4fd08f127640bd581a0 (patch)
treea84087e5b451ea608b6aa3b92d953426ae098c45 /lib/api/helpers.rb
parentf66fec1d41cda8da604a5a92ed811f2b6b80a9dc (diff)
downloadgitlab-ce-eed79986c9f280ea5ccdc4fd08f127640bd581a0.tar.gz
Add subscription API for the group label API
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index fa6c9777824..544736c42f4 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -170,8 +170,8 @@ module API
end
end
- def find_project_label(id)
- labels = available_labels_for(user_project)
+ def find_label(parent, id)
+ labels = available_labels_for(parent)
label = labels.find_by_id(id) || labels.find_by_title(id)
label || not_found!('Label')