]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4175 Fix regression on measure filter treemap
authorJulien HENRY <julien.henry@sonarsource.com>
Wed, 10 Jul 2013 14:55:55 +0000 (16:55 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Wed, 10 Jul 2013 15:14:19 +0000 (17:14 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/measures/_display_treemap.html.erb

index 2e28ab25e67a0979ecee7e563745fbf3d3699b82..d886ae84746187bc854657af61d12f5706b7b270 100644 (file)
@@ -2,7 +2,7 @@
   var filterCriteria<%= widget_id -%> = <%= filter.criteria.to_json -%>;
 </script>
 <%
-   treemap_id = widget_id
+   treemap_id = widget_id.nil? ? 1 : widget_id
    unless edit_mode
 %>
   <table class="spaced">