From 6f2c19320464c928e3dae0373a7af315bf5fb043 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 22 Mar 2012 20:09:47 +0200 Subject: [PATCH] Fix issues search --- app/controllers/issues_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 4070f899..7a92fcfb 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -114,7 +114,7 @@ class IssuesController < ApplicationController when 2 then @project.issues.closed when 3 then @project.issues.opened.assigned(current_user) else @project.issues.opened - end + end.page(params[:page]).per(100) @issues = @issues.where("title LIKE ?", "%#{terms}%") unless terms.blank?