From 36a5bbcc8f37b7980a440a9e79ddf9717f23760a Mon Sep 17 00:00:00 2001
From: Andrey Vasilyev <andymac@inbox.ru>
Date: Fri, 16 May 2014 09:42:58 +0400
Subject: [PATCH] Fixes a problem with 'Issues' filter box, where description
 of the filter says 'Filter by title or description' but in fact filter only
 works for title and doesn't work for description

---
 app/controllers/projects/issues_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb
index 4e7a716bfe4..a24d3042eae 100644
--- a/app/controllers/projects/issues_controller.rb
+++ b/app/controllers/projects/issues_controller.rb
@@ -20,7 +20,7 @@ class Projects::IssuesController < Projects::ApplicationController
     terms = params['issue_search']
 
     @issues = issues_filtered
-    @issues = @issues.where("title LIKE ?", "%#{terms}%") if terms.present?
+    @issues = @issues.where("title LIKE ? OR description LIKE ?", "%#{terms}%", "%#{terms}%") if terms.present?
     @issues = @issues.page(params[:page]).per(20)
 
     assignee_id, milestone_id = params[:assignee_id], params[:milestone_id]
-- 
2.30.9