diff options
| author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-05-03 11:58:43 -0500 |
|---|---|---|
| committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-05-03 11:58:43 -0500 |
| commit | faaab2aef8e7f6b06f8f04dc68596e1229d507db (patch) | |
| tree | f813a5e28624ada2feaa54967d67b922a15bc216 | |
| parent | f0c4f727359a5848d12e2097bad6a6a3190943ef (diff) | |
| download | gitlab-ce-issue_15673.tar.gz | |
Add to label :id to responseissue_15673
| -rw-r--r-- | app/controllers/dashboard/labels_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/dashboard/labels_controller.rb b/app/controllers/dashboard/labels_controller.rb index 23a4ef21ea2..2a88350a4ca 100644 --- a/app/controllers/dashboard/labels_controller.rb +++ b/app/controllers/dashboard/labels_controller.rb @@ -1,6 +1,6 @@ class Dashboard::LabelsController < Dashboard::ApplicationController def index - labels = Label.where(project_id: projects).select(:title, :color).uniq(:title) + labels = Label.where(project_id: projects).select(:id, :title, :color).uniq(:title) respond_to do |format| format.json { render json: labels } |
