diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2015-06-19 16:24:24 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2015-06-19 17:09:48 +0200 |
commit | 95314e58decc1185afc29a1428cac374a935d8fb (patch) | |
tree | 0549db0ebca04840b22ea3db18219d56278a0985 /server/sonar-web/src/main/js | |
parent | 1770cc66b96a2185edcd5bacd04ac154e3dfefe1 (diff) | |
download | sonarqube-95314e58decc1185afc29a1428cac374a935d8fb.tar.gz sonarqube-95314e58decc1185afc29a1428cac374a935d8fb.zip |
SONAR-6582 Fix reporter serialization in issues search
Diffstat (limited to 'server/sonar-web/src/main/js')
4 files changed, 6 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/controller.js b/server/sonar-web/src/main/js/apps/issues/controller.js index 41fcd6433be..1ddcdb180bf 100644 --- a/server/sonar-web/src/main/js/apps/issues/controller.js +++ b/server/sonar-web/src/main/js/apps/issues/controller.js @@ -5,7 +5,7 @@ define([ ], function (Controller, ComponentViewer, HomeView) { var $ = jQuery, - EXTRA_FIELDS = 'actions,transitions,reporterName,actionPlanName', + EXTRA_FIELDS = 'actions,transitions,actionPlanName', FACET_DATA_FIELDS = ['components', 'projects', 'users', 'rules', 'actionPlans', 'languages']; return Controller.extend({ diff --git a/server/sonar-web/src/main/js/apps/issues/models/issues.js b/server/sonar-web/src/main/js/apps/issues/models/issues.js index 66be85a7464..06abb122653 100644 --- a/server/sonar-web/src/main/js/apps/issues/models/issues.js +++ b/server/sonar-web/src/main/js/apps/issues/models/issues.js @@ -63,6 +63,7 @@ define([ }); } issue = that._injectRelational(issue, r.users, 'assignee', 'login'); + issue = that._injectRelational(issue, r.users, 'reporter', 'login'); return issue; }); }, diff --git a/server/sonar-web/src/main/js/components/issue/collections/issues.js b/server/sonar-web/src/main/js/components/issue/collections/issues.js index f749dc448a7..13c8a616dd1 100644 --- a/server/sonar-web/src/main/js/components/issue/collections/issues.js +++ b/server/sonar-web/src/main/js/components/issue/collections/issues.js @@ -60,6 +60,7 @@ define([ _.extend(issue, { ruleName: rule.name }); } issue = that._injectRelational(issue, r.users, 'assignee', 'login'); + issue = that._injectRelational(issue, r.users, 'reporter', 'login'); return issue; }); } diff --git a/server/sonar-web/src/main/js/components/issue/models/issue.js b/server/sonar-web/src/main/js/components/issue/models/issue.js index cdc821785c8..79ad16f7fde 100644 --- a/server/sonar-web/src/main/js/components/issue/models/issue.js +++ b/server/sonar-web/src/main/js/components/issue/models/issue.js @@ -13,7 +13,9 @@ define(function () { parse: function (r) { if (r.issue) { - return this._injectRelational(r.issue, r.users, 'assignee', 'login'); + var issue = this._injectRelational(r.issue, r.users, 'assignee', 'login'); + issue = this._injectRelational(issue, r.users, 'reporter', 'login'); + return issue; } else { return r; } |