mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 23:56:09 +10:00
Case-insensetive search autocomplete for projets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
@@ -139,7 +139,7 @@ class Project < ActiveRecord::Base
|
||||
end
|
||||
|
||||
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}%")
|
||||
end
|
||||
|
||||
def find_with_namespace(id)
|
||||
|
||||
Reference in New Issue
Block a user