diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-05-26 13:54:35 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-05-28 10:06:01 +0200 |
commit | afa40b01fc3109797305b3f1732f4f3aa4c6c9ca (patch) | |
tree | bee4f4e802ab3e58604ee28c4ab288d6b32349f9 /server/sonar-web/src/main/webapp | |
parent | 456991a9a6292cfd88b053d808066f541e847028 (diff) | |
download | sonarqube-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.rb | 7 |
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] = [] |