From: Fabrice Bellingard Date: Tue, 26 Apr 2011 12:59:17 +0000 (+0200) Subject: SONAR-1973 Fix bug in DB request X-Git-Tag: 2.8~127 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d488859bea5acf8406ff19465c1187950105ac05;p=sonarqube.git SONAR-1973 Fix bug in DB request --- 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<