aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb
index 72893127e98..910a52c5594 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb
@@ -175,14 +175,14 @@ class ResourceController < ApplicationController
conditions='snapshot_id=?'
values=[@snapshot.id]
if params[:rule].blank?
- conditions+='AND (switched_off IS NULL OR switched_off=?)'
+ conditions+=' AND (switched_off IS NULL OR switched_off=?)'
values<<false
else
if params[:rule] == "f-positive"
- conditions+='AND switched_off=?'
+ conditions+=' AND switched_off=?'
values<<true
else
- conditions+='AND (switched_off IS NULL OR switched_off=?)'
+ conditions+=' AND (switched_off IS NULL OR switched_off=?)'
values<<false
severity=Sonar::RulePriority.id(params[:rule])
if severity