From f0d72ab12bda27a060554042db2d09b3e672a823 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 5 May 2015 22:44:45 +0200 Subject: [PATCH] SONAR-6529 Fail to create manual metrics on MSSQL if DB role db_owner is not granted --- .../main/webapp/WEB-INF/app/controllers/metrics_controller.rb | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5