aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2011-06-08 10:14:17 +0200
committerFabrice Bellingard <bellingard@gmail.com>2011-06-08 10:14:17 +0200
commit3b355cf7e3b6ae46b60d242474b54a860c4f7ffd (patch)
treee0ec9bc12bdbf7cf7b6df205e3c107a8453ad954
parent05a19df955ab8084bfcb156bf063fdfa80f52a16 (diff)
downloadsonarqube-3b355cf7e3b6ae46b60d242474b54a860c4f7ffd.tar.gz
sonarqube-3b355cf7e3b6ae46b60d242474b54a860c4f7ffd.zip
SONAR-2488 Fix conversion to integer for comment ID
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/models/review.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/review.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/review.rb
index e44ce280a55..638270e1476 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/models/review.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/models/review.rb
@@ -261,7 +261,7 @@ class Review < ActiveRecord::Base
xml.comments do
review_comments.each do |comment|
xml.comment do
- xml.id(comment.id)
+ xml.id(comment.id.to_i)
xml.author(comment.user.login)
xml.updatedAt(Api::Utils.format_datetime(comment.updated_at))
if convert_markdown
@@ -296,7 +296,7 @@ class Review < ActiveRecord::Base
comments = []
review_comments.each do |comment|
comments << {
- 'id' => comment.id,
+ 'id' => comment.id.to_i,
'author' => comment.user.login,
'updatedAt' => Api::Utils.format_datetime(comment.updated_at),
'text' => convert_markdown ? comment.html_text : comment.plain_text