Commit 6f2c1932 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix issues search

parent e241d1e6
......@@ -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?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment