summaryrefslogtreecommitdiffstats
path: root/sonar-server/src
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-02-05 15:21:33 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-02-05 15:22:49 +0100
commitc7bbd059c973036d8a0829dcd3f09cacaa0630be (patch)
tree313ea26371f8412c5c08f75cdf1f10b57ad13032 /sonar-server/src
parent3b51f04bd4d3b16957823f7e84a58375039c9540 (diff)
downloadsonarqube-c7bbd059c973036d8a0829dcd3f09cacaa0630be.tar.gz
sonarqube-c7bbd059c973036d8a0829dcd3f09cacaa0630be.zip
Set RULES_PROFILES.ENABLED to true when creating a profile
Diffstat (limited to 'sonar-server/src')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb
index 9121feb7e60..1f068161adf 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb
@@ -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|