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

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