From: Julien Lancelot Date: Thu, 16 May 2013 14:19:48 +0000 (+0200) Subject: Fix issue when searching rules from Sqale X-Git-Tag: 3.6~346^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=45262ae2a0f65c23abf77af30a6b224857153c31;p=sonarqube.git Fix issue when searching rules from Sqale --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb index ceec97e2d3e..87d8a507599 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb @@ -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]