From 0c59edaafa94738b8eaec1620f20887cc35d90e2 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Fri, 20 Jul 2018 05:10:17 +0300 Subject: Update xorm to latest version and fix correct `user` table referencing in sql (#4473) --- models/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/issue.go') diff --git a/models/issue.go b/models/issue.go index c89ffa7d0f..1ac200c800 100644 --- a/models/issue.go +++ b/models/issue.go @@ -1297,7 +1297,7 @@ func getParticipantsByIssueID(e Engine, issueID int64) ([]*User, error) { And("`comment`.type = ?", CommentTypeComment). And("`user`.is_active = ?", true). And("`user`.prohibit_login = ?", false). - Join("INNER", "user", "`user`.id = `comment`.poster_id"). + Join("INNER", "`user`", "`user`.id = `comment`.poster_id"). Distinct("poster_id"). Find(&userIDs); err != nil { return nil, fmt.Errorf("get poster IDs: %v", err) -- cgit v1.2.3