]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6529 Fail to create manual metrics on MSSQL if DB role db_owner is not granted 291/head
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 5 May 2015 20:44:45 +0000 (22:44 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 5 May 2015 20:44:45 +0000 (22:44 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/metrics_controller.rb

index 6a08553dae1f55a03709e2a3b9a59138b8a82527..27cf139b0884b724c79ed2622d6078e9aa037e38 100644 (file)
@@ -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