From 570028a3b3be614e04a0329d33dbda532c875977 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 29 Jul 2011 17:53:19 +0200 Subject: Fix JSON response of POST /api/manual_measures --- .../webapp/WEB-INF/app/controllers/api/manual_measures_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3