aboutsummaryrefslogtreecommitdiff
path: root/models/issue.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2015-02-11 12:43:43 -0500
committerUnknwon <joe2010xtmf@163.com>2015-02-11 12:43:43 -0500
commitc7a042ef3682fce9f343faf5e8d3e4228feabb96 (patch)
tree4f4f5c295c57930f3a019d4cf7ad84a8d34ef1c8 /models/issue.go
parent767bf82eabed0fede7bbdb5f5b1c75898c6ff00d (diff)
parente805fdb29cdf8ceabe271a5f26472ae1dc34abff (diff)
Merge branch 'access' of github.com:gogits/gogs into access
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/issue.go b/models/issue.go
index d9a24063..9e1d5226 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -282,10 +282,10 @@ type IssueUser struct {
}
// NewIssueUserPairs adds new issue-user pairs for new issue of repository.
-func NewIssueUserPairs(rid, iid, oid, pid, aid int64, repoName string) (err error) {
- iu := &IssueUser{IssueId: iid, RepoId: rid}
+func NewIssueUserPairs(repo *Repository, iid, oid, pid, aid int64) (err error) {
+ iu := &IssueUser{IssueId: iid, RepoId: repo.Id}
- us, err := GetCollaborators(repoName)
+ us, err := repo.GetCollaborators()
if err != nil {
return err
}