]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4554 Restore pageSize param that was wrongly previously deleted
authorJulien Lancelot <julien.lancelot@gmail.com>
Wed, 14 Aug 2013 13:25:07 +0000 (15:25 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Wed, 14 Aug 2013 13:25:07 +0000 (15:25 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb

index 34b2fba5dafa912a583c923f369b03becc6dddcd..a35dab1574aeec845ba63d39bd3394bae1af8aa0 100644 (file)
@@ -37,6 +37,7 @@ class IssuesController < ApplicationController
     @first_search = issues_query_params_sanitized.empty?
     @unchanged = issues_query_params_sanitized.empty?
 
+    init_params
     if params[:id]
       @filter = find_filter(params[:id].to_i)
       @first_search = false
@@ -193,12 +194,15 @@ class IssuesController < ApplicationController
 
   def criteria_params
     new_params = params.clone
-    new_params['pageSize'] = PAGE_SIZE unless request.xhr?
     new_params.delete('controller')
     new_params.delete('action')
     new_params
   end
 
+  def init_params
+    params['pageSize'] = PAGE_SIZE unless request.xhr?
+  end
+
   def issues_query_params_sanitized
     Internal.issues.sanitizeFilterQuery(params).to_hash
   end