Bugfix on search page

This commit is contained in:
Noah Petherbridge 2023-08-29 21:14:06 -07:00
parent 6eb51cf545
commit 8275cc3ad9

View File

@ -283,10 +283,10 @@ func SearchUsers(user *User, search *UserSearch, pager *Pagination) ([]*User, er
wheres = append(wheres, ` wheres = append(wheres, `
EXISTS ( EXISTS (
SELECT 1 FROM profile_fields 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 { if search.Certified {