This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

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 <>
parent 0a09e4a82241
...@@ -139,7 +139,7 @@ def search query ...@@ -139,7 +139,7 @@ def search query
end end
def search_by_title query def search_by_title query
where("projects.archived = ?", false).where(" LIKE :query", query: "%#{query}%") where("projects.archived = ?", false).where("LOWER( LIKE :query", query: "%#{query.downcase}%")
end end
def find_with_namespace(id) 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