Bugfix on search page
This commit is contained in:
parent
6eb51cf545
commit
8275cc3ad9
|
@ -283,10 +283,10 @@ func SearchUsers(user *User, search *UserSearch, pager *Pagination) ([]*User, er
|
|||
wheres = append(wheres, `
|
||||
EXISTS (
|
||||
SELECT 1 FROM profile_fields
|
||||
WHERE user_id = users.id AND name = ? AND value = ?
|
||||
WHERE user_id = users.id AND name = ? AND value LIKE ?
|
||||
)
|
||||
`)
|
||||
placeholders = append(placeholders, "here_for", search.HereFor)
|
||||
placeholders = append(placeholders, "here_for", "%"+search.HereFor+"%")
|
||||
}
|
||||
|
||||
if search.Certified {
|
||||
|
|
Loading…
Reference in New Issue
Block a user