From 02a287c10bbcd68489a7cf1a845064eec2e96c95 Mon Sep 17 00:00:00 2001 From: Alexei Bezborodov Date: Tue, 23 Aug 2022 13:40:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B8=D1=81=D0=BA=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D0=B5?= =?UTF-8?q?=D0=B9=20=D0=BF=D0=BE=20=D0=BF=D0=BE=D0=BB=D1=8E=20'=D0=9E=20?= =?UTF-8?q?=D1=81=D0=B5=D0=B1=D0=B5'=20#101?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/user/search.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/user/search.go b/models/user/search.go index a81cee1c22..24a21777e8 100644 --- a/models/user/search.go +++ b/models/user/search.go @@ -45,6 +45,7 @@ func (opts *SearchUserOptions) toSearchQueryBase() *xorm.Session { keywordCond := builder.Or( builder.Like{"lower_name", lowerKeyword}, builder.Like{"LOWER(full_name)", lowerKeyword}, + builder.Like{"LOWER(description)", lowerKeyword}, ) if opts.SearchByEmail { keywordCond = keywordCond.Or(builder.Like{"LOWER(email)", lowerKeyword})