From 0ed2d7af8846efe548311c54fd9abf7dccd721ec Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 3 Jan 2017 16:06:27 +0800 Subject: [PATCH] fix bug #564 --- models/org.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/org.go b/models/org.go index 881b8bfc7ece..7fbd790f5b37 100644 --- a/models/org.go +++ b/models/org.go @@ -559,7 +559,7 @@ func (org *User) GetUserRepositories(userID int64, page, pageSize int) ([]*Repos } repos := make([]*Repository, 0, pageSize) - if err := x. + if err := x.Select("`repository`.*"). Join("INNER", "team_repo", "`team_repo`.repo_id=`repository`.id"). Where(cond). GroupBy("`repository`.id").