From 45262ae2a0f65c23abf77af30a6b224857153c31 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Thu, 16 May 2013 16:19:48 +0200 Subject: [PATCH] Fix issue when searching rules from Sqale --- sonar-server/src/main/webapp/WEB-INF/app/models/rule.rb | 2 ++ 1 file changed, 2 insertions(+) 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] -- 2.39.5