diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-12-24 08:44:19 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-12-24 08:44:19 +0100 |
commit | 937fb8fd998ea71d8697d927efaabe1de5ae34de (patch) | |
tree | d52fc34b24ec0e5c86b0508ae25985ab6069958e /sonar-server/src/main/webapp/WEB-INF | |
parent | a70c14597aede4629748dac63643a7345490e511 (diff) | |
download | sonarqube-937fb8fd998ea71d8697d927efaabe1de5ae34de.tar.gz sonarqube-937fb8fd998ea71d8697d927efaabe1de5ae34de.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/new_rules_configuration_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/new_rules_configuration_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/new_rules_configuration_controller.rb index 907395eb13e..9d97816221c 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/new_rules_configuration_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/new_rules_configuration_controller.rb @@ -164,8 +164,9 @@ class NewRulesConfigurationController < ApplicationController rule_id = params[:rule_id].to_i new_rule = nil call_backend do - new_rule = Internal.quality_profiles.newRule(profile_id, rule_id, params[:rule][:name], params[:rule][:priority], params[:rule][:description], params[:rule_param]) + new_rule = Internal.quality_profiles.newRule(rule_id, params[:rule][:name], params[:rule][:priority], params[:rule][:description], params[:rule_param]) end + if new_rule redirect_to :action => 'index', :id => profile_id, :searchtext => "\"#{new_rule.name()}\"", :rule_activation => 'INACTIVE', "plugins[]" => new_rule.repositoryKey() else |