Bugfix on user search page
This commit is contained in:
parent
de5059c51c
commit
09ba634556
|
@ -269,7 +269,7 @@ func SearchUsers(user *User, search *UserSearch, pager *Pagination) ([]*User, er
|
||||||
|
|
||||||
if search.Username != "" {
|
if search.Username != "" {
|
||||||
ilike := "%" + strings.TrimSpace(strings.ToLower(search.Username)) + "%"
|
ilike := "%" + strings.TrimSpace(strings.ToLower(search.Username)) + "%"
|
||||||
wheres = append(wheres, "username LIKE ? OR name ILIKE ?")
|
wheres = append(wheres, "(username LIKE ? OR name ILIKE ?)")
|
||||||
placeholders = append(placeholders, ilike, ilike)
|
placeholders = append(placeholders, ilike, ilike)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user