diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-08-12 15:47:48 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-08-12 15:47:48 +0200 |
commit | cb0a37fb684e478197fe31be91171d091fe88c0c (patch) | |
tree | 1280867775c7fa70d6634a46ea20ab0351bae7dd /server/sonar-web/src | |
parent | 75dbc1e0c51ef9f59202ebcf2a8e88025dbfc219 (diff) | |
download | sonarqube-cb0a37fb684e478197fe31be91171d091fe88c0c.tar.gz sonarqube-cb0a37fb684e478197fe31be91171d091fe88c0c.zip |
fix display of rule issues
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/rule/rule-issues-view.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/test/json/coding-rules-spec/issues-search.json | 3 |
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": [], |