aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2011-04-26 14:59:17 +0200
committerFabrice Bellingard <bellingard@gmail.com>2011-04-26 14:59:17 +0200
commitd488859bea5acf8406ff19465c1187950105ac05 (patch)
tree43572d51c6460938ea7669bc9bf05135285e91a3 /sonar-server
parent577334b5657f0a32804813368921b35d64a43a4c (diff)
downloadsonarqube-d488859bea5acf8406ff19465c1187950105ac05.tar.gz
sonarqube-d488859bea5acf8406ff19465c1187950105ac05.zip
SONAR-1973 Fix bug in DB request
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