From 8b70b5a5947aa6840e258904c21d3534cd61e168 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 16 Jul 2013 15:41:53 +0200 Subject: [PATCH] SONAR-4474 on a view, it should be possible to list all the issues as soon as we click on a project --- .../webapp/WEB-INF/app/views/drilldown/issues.html.erb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/issues.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/issues.html.erb index fff05a09ccb..1cef2048feb 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/issues.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/issues.html.erb @@ -121,6 +121,7 @@ paths=[] rids=[] first_column=true + last_base_snapshot=nil @drilldown.columns.each_with_index do |column, index| %> <% if first_column %> @@ -173,6 +174,9 @@ <% end first_column = column.switch? rids< @@ -190,11 +194,7 @@ var params = { pageSize: '10', resolved: 'false', - <% if rids.empty? %> - componentRoots: '<%= @snapshot.project.key %>', - <% else %> - componentRoots: '<%= Project.by_key(rids.last).key %>', - <% end %> + componentRoots: '<%= last_base_snapshot ? last_base_snapshot.project.key : @snapshot.project.key %>', <% if @rule %> rules: '<%= @rule.plugin_name + ':' + @rule.plugin_rule_key %>', <% end %> -- 2.39.5