]> source.dussan.org Git - sonarqube.git/commitdiff
Fix issues page size in controller
authorJulien Lancelot <julien.lancelot@gmail.com>
Fri, 21 Jun 2013 09:35:53 +0000 (11:35 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Fri, 21 Jun 2013 09:35:53 +0000 (11:35 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb

index 5fb1f0499ac81a5b3f531fccb611843b73bbacc7..7a3e468bb7dc27856e33b8d0ec3d354d2e89f139 100644 (file)
@@ -22,6 +22,8 @@ class IssuesController < ApplicationController
   before_filter :init_options
   before_filter :load_filters, :only => [:index, :search, :filter, :manage, :toggle_fav]
 
+  PAGE_SIZE = 100
+
   # GET /issues/index
   def index
     redirect_to :action => 'search'
@@ -34,6 +36,7 @@ class IssuesController < ApplicationController
     end
 
     @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
@@ -49,6 +52,7 @@ class IssuesController < ApplicationController
     @unchanged = true
 
     @criteria_params = criteria_params
+    @criteria_params['pageSize'] = PAGE_SIZE
     @filter = find_filter(params[:id].to_i)
     issue_filter_result = Internal.issues.execute(params[:id].to_i, @criteria_params)
     @issue_query = issue_filter_result.query