Unverified Commit 712a2ec4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Case-insensetive search autocomplete for projets

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 0a09e4a82241
......@@ -139,7 +139,7 @@ def search query
def search_by_title query
where("projects.archived = ?", false).where("projects.name LIKE :query", query: "%#{query}%")
where("projects.archived = ?", false).where("LOWER(projects.name) LIKE :query", query: "%#{query.downcase}%")
def find_with_namespace(id)
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