Commit f39db7e5ed2712244a3ddfd3b36e5a74a53a8cc8

Authored by Dmitriy Zaporozhets
1 parent b6f3f626

Case-insensetive search for issue/mr title

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/concerns/issuable.rb
@@ -42,7 +42,7 @@ module Issuable @@ -42,7 +42,7 @@ module Issuable
42 42
43 module ClassMethods 43 module ClassMethods
44 def search(query) 44 def search(query)
45 - where("title like :query", query: "%#{query}%") 45 + where("LOWER(title) like :query", query: "%#{query.downcase}%")
46 end 46 end
47 47
48 def sort(method) 48 def sort(method)