aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/rule/rule-issues-view.js2
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/issues-search.json3
2 files changed, 2 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-issues-view.js b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-issues-view.js
index 182e3b988d6..8480815a269 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-issues-view.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-issues-view.js
@@ -48,7 +48,7 @@ define([
var projectsFacet = _.findWhere(r.facets, { property: 'projectUuids' }),
projects = projectsFacet != null ? projectsFacet.values : [];
projects = projects.map(function (project) {
- var projectBase = _.findWhere(r.projects, { uuid: project.val });
+ var projectBase = _.findWhere(r.components, { uuid: project.val });
return _.extend(project, {
name: projectBase != null ? projectBase.longName : ''
});
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/issues-search.json b/server/sonar-web/src/test/json/coding-rules-spec/issues-search.json
index 511b9288285..041784107a4 100644
--- a/server/sonar-web/src/test/json/coding-rules-spec/issues-search.json
+++ b/server/sonar-web/src/test/json/coding-rules-spec/issues-search.json
@@ -2,7 +2,7 @@
"total": 7,
"p": 1,
"ps": 1,
- "projects": [
+ "components": [
{
"uuid": "3b22f38e-ad68-4792-9791-1435584a686c",
"key": "org.codehaus.sonar.runner:sonar-runner",
@@ -20,7 +20,6 @@
"longName": "SonarQube"
}
],
- "components": [],
"issues": [],
"rules": [],
"users": [],