aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-core-plugin
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-10-30 15:35:44 +0100
committerStas Vilchik <vilchiks@gmail.com>2014-10-30 15:49:54 +0100
commite7fc710e6467ca4e1dfc7a5cbd6ae2231270ca01 (patch)
treeca260438d32fe09c36cef7b803e8b048dde5b9a3 /plugins/sonar-core-plugin
parente0aeda32ac24fa020884f93fc123f7e795599b2d (diff)
downloadsonarqube-e7fc710e6467ca4e1dfc7a5cbd6ae2231270ca01.tar.gz
sonarqube-e7fc710e6467ca4e1dfc7a5cbd6ae2231270ca01.zip
SONAR-5718 Update issues widget in order to support project UUID
Diffstat (limited to 'plugins/sonar-core-plugin')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/my_unresolved_issues.html.erb2
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/unresolved_issues_per_assignee.html.erb2
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/unresolved_issues_statuses.html.erb2
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/my_unresolved_issues.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/my_unresolved_issues.html.erb
index 79946993b70..977957d4dbe 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/my_unresolved_issues.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/my_unresolved_issues.html.erb
@@ -2,7 +2,7 @@
if current_user && (!@project || has_role?(:user, @project))
search_options = {}
- search_options['componentRoots'] = @project.key if @project
+ search_options['componentRootUuids'] = @project.uuid if @project
search_options['resolved'] = 'false'
search_options['assignees'] = current_user.login
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/unresolved_issues_per_assignee.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/unresolved_issues_per_assignee.html.erb
index fec0255334f..27c8e54c8bf 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/unresolved_issues_per_assignee.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/unresolved_issues_per_assignee.html.erb
@@ -1,7 +1,7 @@
<%
options = {}
options['resolved'] = 'false'
- options['componentRoots'] = @project.key
+ options['componentRootUuids'] = @project.uuid
if @dashboard_configuration.selected_period?
options['createdAfter'] = Api::Utils.format_datetime(@dashboard_configuration.from_datetime)
options['createdBefore'] = Api::Utils.format_datetime(DateTime.now)
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/unresolved_issues_statuses.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/unresolved_issues_statuses.html.erb
index 7b54a12bcb9..c62ee086c91 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/unresolved_issues_statuses.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/unresolved_issues_statuses.html.erb
@@ -6,7 +6,7 @@
issues_search_options = {}
issues_search_options['resolved'] = 'false'
- issues_search_options['componentRoots'] = @project.key
+ issues_search_options['componentRootUuids'] = @project.uuid
%>
<table width="100%">
<tr>