diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-07-29 17:53:19 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-07-29 17:53:19 +0200 |
commit | 570028a3b3be614e04a0329d33dbda532c875977 (patch) | |
tree | 2922efece84b060136264c9f0bfc2fabca51eabe | |
parent | 2ad5e41e3cce45040b4c5edbe19d09be640c293d (diff) | |
download | sonarqube-570028a3b3be614e04a0329d33dbda532c875977.tar.gz sonarqube-570028a3b3be614e04a0329d33dbda532c875977.zip |
Fix JSON response of POST /api/manual_measures
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/api/manual_measures_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/manual_measures_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/manual_measures_controller.rb index 704058273fe..6e3d13734c5 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/manual_measures_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/api/manual_measures_controller.rb @@ -69,7 +69,7 @@ class Api::ManualMeasuresController < Api::ApiController measure.save! respond_to do |format| - format.json { render :json => jsonp(manual_measure_to_json(resource, measure)) } + format.json { render :json => jsonp(manual_measures_to_json(resource, [measure])) } format.xml { render :xml => xml_not_supported } end end |