diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-11 22:33:55 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 19:58:26 +0300 |
commit | 247859c82915a0ee88944c1fcda3f6faf49e54c0 (patch) | |
tree | f3079697944bbb6911c48ce249b6c938368094fd /app/controllers/projects/labels_controller.rb | |
parent | 1e6d136af31b0b91a03881a0c20b9bfa448201ee (diff) |
Render all available labels to project on project labels dropdown
Diffstat (limited to 'app/controllers/projects/labels_controller.rb')
-rw-r--r-- | app/controllers/projects/labels_controller.rb | 2 |
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 |