BigW Consortium Gitlab

Case-insensetive search for issue/mr title

parent b6f3f626
......@@ -42,7 +42,7 @@ module Issuable
module ClassMethods
def search(query)
where("title like :query", query: "%#{query}%")
where("LOWER(title) like :query", query: "%#{query.downcase}%")
end
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