mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-21 06:15:31 +08:00
Merge pull request #572 from ZmagoD/zd_SCI_1192_ver2
make search for users case insensitive [fixes SCI-1192]
This commit is contained in:
commit
9704b3ffd4
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class Team < ActiveRecord::Base
|
|||
def search_users(query = nil)
|
||||
a_query = "%#{query}%"
|
||||
users.where.not(confirmed_at: nil)
|
||||
.where('full_name LIKE ? OR email LIKE ?', a_query, a_query)
|
||||
.where('full_name ILIKE ? OR email ILIKE ?', a_query, a_query)
|
||||
end
|
||||
|
||||
# Imports samples into db
|
||||
|
|
Loading…
Reference in a new issue