summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-11 16:33:55 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 14:58:26 -0200
commit247859c82915a0ee88944c1fcda3f6faf49e54c0 (patch)
treef3079697944bbb6911c48ce249b6c938368094fd
parent1e6d136af31b0b91a03881a0c20b9bfa448201ee (diff)
downloadgitlab-ce-247859c82915a0ee88944c1fcda3f6faf49e54c0.tar.gz
Render all available labels to project on project labels dropdown
-rw-r--r--app/controllers/projects/labels_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/labels_controller.rb b/app/controllers/projects/labels_controller.rb
index 87c9101551b..f4ad503c9a6 100644
--- a/app/controllers/projects/labels_controller.rb
+++ b/app/controllers/projects/labels_controller.rb
@@ -18,7 +18,7 @@ class Projects::LabelsController < Projects::ApplicationController
respond_to do |format|
format.html
format.json do
- render json: @labels.as_json(only: [:id, :title, :color])
+ render json: @available_labels.as_json(only: [:id, :title, :color])
end
end
end