summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-03-16 18:37:25 +0000
committerPhil Hughes <me@iamphill.com>2016-03-18 15:18:06 +0000
commit645b7a0a3389dca3a709f65a52ae765f213078f2 (patch)
treef9fe603ec8fec3cfad82d4512d0ac4f9261bca47
parent0858cb097afcaa529e5e0fe7154af53f66ce62fe (diff)
downloadgitlab-ce-645b7a0a3389dca3a709f65a52ae765f213078f2.tar.gz
Full labels data in JSON
-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 c61793f89af..5f471d405f5 100644
--- a/app/controllers/projects/labels_controller.rb
+++ b/app/controllers/projects/labels_controller.rb
@@ -16,7 +16,7 @@ class Projects::LabelsController < Projects::ApplicationController
respond_to do |format|
format.html
format.json do
- render json: @labels.to_json
+ render json: @project.labels
end
end
end