]> source.dussan.org Git - sonarqube.git/commitdiff
Set RULES_PROFILES.ENABLED to true when creating a profile
authorsimonbrandhof <simon.brandhof@gmail.com>
Sat, 5 Feb 2011 14:21:33 +0000 (15:21 +0100)
committersimonbrandhof <simon.brandhof@gmail.com>
Sat, 5 Feb 2011 14:22:49 +0000 (15:22 +0100)
sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb

index 9121feb7e60606b1d55099369fbf06b5095f9f14..1f068161adfc4fbc14a9ceca31360bc8b009b4ad 100644 (file)
@@ -63,7 +63,7 @@ class ProfilesController < ApplicationController
         flash[:error]="This profile already exists: #{profile_name}"
 
       else
-        profile = Profile.create(:name => profile_name, :language => language, :default_profile => false)
+        profile = Profile.create(:name => profile_name, :language => language, :default_profile => false, :enabled => true)
         ok=profile.errors.empty?
         if ok && params[:backup]
           params[:backup].each_pair do |importer_key, file|