]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3714 Add missing bulk change service in Web container
authorJulien Lancelot <julien.lancelot@gmail.com>
Fri, 21 Jun 2013 14:58:35 +0000 (16:58 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Fri, 21 Jun 2013 14:58:35 +0000 (16:58 +0200)
sonar-server/src/main/java/org/sonar/server/platform/Platform.java
sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb

index 37323956b6a1143dfb446e6662fb9170471fcb5e..7d7c5d873c63c7c1b7446686118e39a54d9f91c1 100644 (file)
@@ -276,6 +276,7 @@ public final class Platform {
     servicesContainer.addSingleton(Actions.class);
     servicesContainer.addSingleton(IssueFilterSerializer.class);
     servicesContainer.addSingleton(IssueFilterService.class);
+    servicesContainer.addSingleton(IssueBulkChangeService.class);
 
     // rules
     servicesContainer.addSingleton(RubyRuleService.class);
index 7a3e468bb7dc27856e33b8d0ec3d354d2e89f139..f5a0ee450d381a98f51686789ea7c80efe0ac855 100644 (file)
@@ -35,9 +35,9 @@ class IssuesController < ApplicationController
       @filter = find_filter(params[:id].to_i)
     end
 
+    @first_search = criteria_params.empty?
     @criteria_params = criteria_params
     @criteria_params['pageSize'] = PAGE_SIZE
-    @first_search = @criteria_params.empty?
     issue_filter_result = Internal.issues.execute(@criteria_params)
     @issue_query = issue_filter_result.query
     @issues_result = issue_filter_result.result