aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/coffee/issues/models/issues.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/coffee/issues/models/issues.coffee')
-rw-r--r--server/sonar-web/src/main/coffee/issues/models/issues.coffee5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/coffee/issues/models/issues.coffee b/server/sonar-web/src/main/coffee/issues/models/issues.coffee
index e76b26266d2..b7fd33484e6 100644
--- a/server/sonar-web/src/main/coffee/issues/models/issues.coffee
+++ b/server/sonar-web/src/main/coffee/issues/models/issues.coffee
@@ -23,6 +23,7 @@ define [
r.issues.map (issue, index) ->
component = find r.components, issue.component
project = find r.projects, issue.project
+ subProject = find r.components, issue.subProject
rule = find r.rules, issue.rule
_.extend issue,
@@ -37,6 +38,10 @@ define [
_.extend issue,
projectLongName: project.longName
+ if subProject
+ _.extend issue,
+ subProjectLongName: subProject.longName
+
if rule
_.extend issue,
ruleName: rule.name