diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-08-07 20:19:45 +0200 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-08-07 20:19:45 +0200 |
commit | a3ca255c34a4aec4810b2a6f944f3b6445933d22 (patch) | |
tree | 7a7f60c214b5271dea5dc4717c312b5a42dcc5fd | |
parent | dbe4d28634602a8c2b167d0becfeb8a4cdc8915c (diff) | |
download | sonarqube-a3ca255c34a4aec4810b2a6f944f3b6445933d22.tar.gz sonarqube-a3ca255c34a4aec4810b2a6f944f3b6445933d22.zip |
Fix filters when a selected metric does not exist
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/models/filter_column.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/filter_column.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/filter_column.rb index 0694e37d8bd..2af661559cf 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/filter_column.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/filter_column.rb @@ -39,7 +39,7 @@ class FilterColumn < ActiveRecord::Base def name if on_metric? - Api::Utils.message("metric." + kee + ".name", :default => metric.short_name) + Api::Utils.message("metric." + kee + ".name", :default => (metric ? metric.short_name : kee)) else Api::Utils.message(family, :default => kee) end |