]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2342 Add missing case for icon path
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Thu, 29 Nov 2012 16:46:46 +0000 (17:46 +0100)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Thu, 29 Nov 2012 16:46:46 +0000 (17:46 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb

index 55724f089507302e1cb5f01ee74440a60d9ffbd6..2b87edeb525507f69cbb1756e24a00a5aec3d38d 100644 (file)
@@ -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() : "" -%>');
   }  
 </script>