diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-10-22 14:39:38 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-10-22 14:39:38 +0000 |
commit | e973e6a37497eb8cdfd407d69ab7b2cad6b4950c (patch) | |
tree | 1bfdc7bd1d6720834e49d6d5d9a2f39f6e2aa789 /sonar-server | |
parent | ff1ad1ff441427a0c744e084fff9c34f2f1d2335 (diff) | |
download | sonarqube-e973e6a37497eb8cdfd407d69ab7b2cad6b4950c.tar.gz sonarqube-e973e6a37497eb8cdfd407d69ab7b2cad6b4950c.zip |
SONAR-1830 do not define alert thresholds on rating metrics
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/models/metric.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/metric.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/metric.rb index fe23e7eb177..21a08a20616 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/metric.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/metric.rb @@ -120,7 +120,7 @@ class Metric < ActiveRecord::Base end def alertable? - (!data?) && (!hidden) && (key!=Metric::ALERT_STATUS) + (!data?) && (!hidden) && (key!=Metric::ALERT_STATUS) && (val_type != VALUE_TYPE_RATING) end def suffix |