aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-04-19 15:58:07 +0200
committersimonbrandhof <simon.brandhof@gmail.com>2011-04-20 10:20:10 +0200
commitc6d954e8c39d9d9555ceb2e966feefef1c6b3c0b (patch)
tree578818c7d16008c8ba56ec0fe15ac470952ab3eb
parent875fa294a3e681a8f608b5c5d5d5344c4106871d (diff)
downloadsonarqube-c6d954e8c39d9d9555ceb2e966feefef1c6b3c0b.tar.gz
sonarqube-c6d954e8c39d9d9555ceb2e966feefef1c6b3c0b.zip
SONAR-2367 Filter error when a column is on a disabled metric
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb
index a09b2851798..b6231d2f023 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb
@@ -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 %>