]> source.dussan.org Git - sonarqube.git/commitdiff
fix broken View page because of missing Squale metric
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 2 Sep 2015 15:20:01 +0000 (17:20 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 2 Sep 2015 15:27:30 +0000 (17:27 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/views/overview/index.html.erb

index a95cbea8ce53c45e3c4dfb8e4e403b65defac8a2..c811c6021210fd3d33460f3acdf6f502148e145b 100644 (file)
         <% if @snapshot %>
 
         // issues
+        <% if @snapshot.measure('sqale_rating') %>
         sqaleRating: '<%= @snapshot.measure('sqale_rating').value -%>',
+        <% else %>
+        sqaleRating: 'A',
+        <% end %>
 
         // coverage
         <% if @snapshot.measure('overall_coverage') %>