]> source.dussan.org Git - sonarqube.git/commitdiff
Fix issue when searching rules from Sqale
authorJulien Lancelot <julien.lancelot@gmail.com>
Thu, 16 May 2013 14:19:48 +0000 (16:19 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Thu, 16 May 2013 14:19:48 +0000 (16:19 +0200)
sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb

index ceec97e2d3ec9c7cb9ecd4e01198aa1c6287dcec..87d8a507599d5a113c0ed2e27e8e670bed31f04d 100644 (file)
@@ -295,6 +295,8 @@ class Rule < ActiveRecord::Base
     elsif status == 'ACTIVE' || status == 'INACTIVE'
       # For retro compatibility for the Sqale plugin
       options[:activation] = status
+      conditions << ['status <> :status']
+      values[:status] = STATUS_REMOVED
     else
       conditions << "status IN (:status)"
       values[:status] = options[:status]