From: Simon Brandhof Date: Wed, 6 May 2015 21:21:26 +0000 (+0200) Subject: SONAR-6529 Fail to create manual metrics on MSSQL if DB role db_owner is not granted X-Git-Tag: 5.2-RC1~2031 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1e3b41784b45f293bbdc62624b120b42e3b7f94b;p=sonarqube.git SONAR-6529 Fail to create manual metrics on MSSQL if DB role db_owner is not granted --- diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/metrics_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/metrics_controller.rb index 6a08553dae1..d227701f6d0 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/metrics_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/metrics_controller.rb @@ -93,6 +93,7 @@ class MetricsController < ApplicationController end metric.direction = 0 metric.user_managed = true + metric.qualitative = false metric.origin = Metric::ORIGIN_GUI metric.enabled = true unless @reactivate_metric