aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/webapp
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-05-26 13:54:35 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-05-28 10:06:01 +0200
commitafa40b01fc3109797305b3f1732f4f3aa4c6c9ca (patch)
treebee4f4e802ab3e58604ee28c4ab288d6b32349f9 /server/sonar-web/src/main/webapp
parent456991a9a6292cfd88b053d808066f541e847028 (diff)
downloadsonarqube-afa40b01fc3109797305b3f1732f4f3aa4c6c9ca.tar.gz
sonarqube-afa40b01fc3109797305b3f1732f4f3aa4c6c9ca.zip
SONAR-6579 add user email fields to responses of api/issues/search and api/issues/changelog WS
Diffstat (limited to 'server/sonar-web/src/main/webapp')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/models/issue.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/models/issue.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/models/issue.rb
index 60e44f79fb3..1af6920069a 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/models/issue.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/models/issue.rb
@@ -69,8 +69,11 @@ class Issue
user = changelog.user(change)
hash_change = {}
- hash_change[:user] = user.login() if user
- hash_change[:userName] = user.name() if user
+ if user
+ hash_change[:user] = user.login()
+ hash_change[:userName] = user.name()
+ hash_change[:email] = user.email()
+ end
hash_change[:creationDate] = Api::Utils.format_datetime(change.creationDate()) if change.creationDate()
hash_change[:diffs] = []