Commit 6f2c19320464c928e3dae0373a7af315bf5fb043

Authored by Dmitriy Zaporozhets
1 parent e241d1e6

Fix issues search

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/issues_controller.rb
... ... @@ -114,7 +114,7 @@ class IssuesController < ApplicationController
114 114 when 2 then @project.issues.closed
115 115 when 3 then @project.issues.opened.assigned(current_user)
116 116 else @project.issues.opened
117   - end
  117 + end.page(params[:page]).per(100)
118 118  
119 119 @issues = @issues.where("title LIKE ?", "%#{terms}%") unless terms.blank?
120 120  
... ...