summaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-04-16 12:35:08 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-04-16 12:35:08 +0200
commit833ab401d8a7dd17c2f5ca02d71cf0c9e80d9e29 (patch)
tree84c93c51b65611bfb5cc9e67767965af3fe12d62 /sonar-server
parent107195ad1754f1495a441d87df7994f98235f472 (diff)
downloadsonarqube-833ab401d8a7dd17c2f5ca02d71cf0c9e80d9e29.tar.gz
sonarqube-833ab401d8a7dd17c2f5ca02d71cf0c9e80d9e29.zip
Fix issue when deleting copy of rule
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb
index 6048ec0963a..11b64b0ff8b 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb
@@ -246,7 +246,7 @@ class RulesConfigurationController < ApplicationController
def delete
rule=Rule.find(params[:rule_id])
if rule.editable?
- rule.status=RULE::STATUS_REMOVED
+ rule.status=Rule::STATUS_REMOVED
rule.save
# it's mandatory to execute 'destroy_all' but not 'delete_all' because active_rule_parameters must