From: Simon Brandhof Date: Tue, 5 May 2015 20:44:45 +0000 (+0200) Subject: SONAR-6529 Fail to create manual metrics on MSSQL if DB role db_owner is not granted X-Git-Tag: 4.5.5~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F291%2Fhead;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..27cf139b088 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 @@ -92,6 +92,7 @@ class MetricsController < ApplicationController metric.domain = params[:newdomain] end metric.direction = 0 + metric.qualitative = false metric.user_managed = true metric.origin = Metric::ORIGIN_GUI metric.enabled = true unless @reactivate_metric