Commit f39db7e5 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Case-insensetive search for issue/mr title

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent b6f3f626
...@@ -42,7 +42,7 @@ module Issuable ...@@ -42,7 +42,7 @@ module Issuable
module ClassMethods module ClassMethods
def search(query) def search(query)
where("title like :query", query: "%#{query}%") where("LOWER(title) like :query", query: "%#{query.downcase}%")
end end
def sort(method) def sort(method)
......
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