]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2367 Filter error when a column is on a disabled metric
authorsimonbrandhof <simon.brandhof@gmail.com>
Tue, 19 Apr 2011 13:58:07 +0000 (15:58 +0200)
committersimonbrandhof <simon.brandhof@gmail.com>
Wed, 20 Apr 2011 08:20:10 +0000 (10:20 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb

index a09b28517980502a1916574802faed5b7cc1f994..b6231d2f023fe04bf20be8392c46cbafcbb520a5 100644 (file)
@@ -96,7 +96,7 @@
       <td><% if logged_in? %><%= link_to_favourite(snapshot.project) -%><% end %></td>
       <% filter.columns.each do |column| %>
       <td class="<%= column_align(column) -%>">
-        <% if column.on_metric?
+        <% if column.on_metric? && column.metric
              measure = @filter_context.measure(snapshot, column.metric)
         %>
           <% if column.variation %>