aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-07-18 17:19:21 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-07-18 17:19:58 +0200
commit29fc472ef063094907dca7b71f443036dd623ea6 (patch)
tree0ce596450012e602b2a540ba245394ec7cca2883 /plugins
parent6a76aaf0dfda27d898a6577e8def32e205399a2a (diff)
downloadsonarqube-29fc472ef063094907dca7b71f443036dd623ea6.tar.gz
sonarqube-29fc472ef063094907dca7b71f443036dd623ea6.zip
SONAR-5452 Display action plan widget only on TRK qualifier
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb
index db9c35fa315..dab39e4846f 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb
@@ -1,6 +1,6 @@
<%
- # This widget should only be display on root projects, not on modules
- if @project.root_project == @project && has_role?(:user, @project)
+ # This widget should only be display on root projects
+ if @project.qualifier == 'TRK' && has_role?(:user, @project)
action_plans = Internal.issues.findActionPlanStats(@resource.key)
open_action_plans = action_plans.select {|plan| plan.isOpen()}