diff options
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF/app/models/review.rb')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/models/review.rb | 4 |
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 |