aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-08-04 14:44:37 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-08-04 14:44:37 +0200
commit7eead2df4c1c15ec27b89935165dc56ae005722d (patch)
treeb8501c21d653957a10e9c7fca49b4e9ff6d4e5a0 /sonar-server
parentdd7b6e304adcd0365ed568833142590ebcaf7118 (diff)
downloadsonarqube-7eead2df4c1c15ec27b89935165dc56ae005722d.tar.gz
sonarqube-7eead2df4c1c15ec27b89935165dc56ae005722d.zip
Fix JSON response of /api/manual_measures on postgresql
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/api/manual_measures_controller.rb2
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 6e3d13734c5..5fd661c8cb2 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
@@ -100,7 +100,7 @@ class Api::ManualMeasuresController < Api::ApiController
end
def manual_measure_to_json(resource, manual_measure)
- hash={:id => manual_measure.id, :metric => manual_measure.metric.key, :resource => resource.key}
+ hash={:id => manual_measure.id.to_i, :metric => manual_measure.metric.key, :resource => resource.key}
hash[:val]=manual_measure.value if manual_measure.value
hash[:text]=manual_measure.text_value if manual_measure.text_value
hash[:desc]=manual_measure.description if manual_measure.description