Commit a4da009c3d21333bedf17bf2c05ffc3eb332af02

Authored by Cyril Mougel
2 parents ca25b8b7 a988dbef
Exists in master and in 1 other branch production

Merge pull request #609 from zhekanax/patch-1

Setting per_page value on search problems page
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/problems_controller.rb
... ... @@ -127,7 +127,7 @@ class ProblemsController < ApplicationController
127 127 def search
128 128 ps = Problem.search(params[:search]).for_apps(app_scope).in_env(params[:environment]).all_else_unresolved(params[:all_errs]).ordered_by(params_sort, params_order)
129 129 selected_problems = params[:problems] || []
130   - self.problems = ps.page(params[:page]).per(2)
  130 + self.problems = ps.page(params[:page]).per(current_user.per_page)
131 131 respond_to do |format|
132 132 format.html { render :index }
133 133 format.js
... ...