From eb5382359405ef38b5a45a13ac776110c9c6a98b Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Thu, 29 Nov 2012 17:46:46 +0100 Subject: [PATCH] SONAR-2342 Add missing case for icon path --- .../src/main/webapp/WEB-INF/app/views/resource/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb index 55724f08950..2b87edeb525 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb @@ -2,7 +2,7 @@ if (sonarRecentHistory != null) { sonarRecentHistory.add('<%= @resource.key -%>', '<%= @resource.name(true) -%>', - '<%= @resource.qualifier -%>'); + '<%= @resource ? Java::OrgSonarServerUi::JRubyFacade.getInstance().getResourceType(@resource.qualifier).getIconPath() : "" -%>'); } -- 2.39.5